/* Page Sections — Feature with quote (feature_split-style block + inline customer quote) */

.ps-fquote__inner {
	display: grid;
	grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

/* Image position swap — flip column order so the media stays in its own grid cell. */
.ps-fquote--right .ps-fquote__media { order: 2; }
.ps-fquote--right .ps-fquote__copy  { order: 1; }

/* ---------------------------------------------------------------------------
 * Media
 * --------------------------------------------------------------------------- */

.ps-fquote__media {
	min-width: 0;
}

.ps-fquote__media-frame {
	position: relative;
	width: 100%;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-card);
}

/* Cover — fills the column edge-to-edge */
.ps-fquote--cover .ps-fquote__media-frame {
	aspect-ratio: 4 / 3;
	background: var(--sand);
}

.ps-fquote--cover .ps-fquote__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Contain — sand background card, padded around the image */
.ps-fquote--contain .ps-fquote__media-frame {
	background: var(--sand);
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ps-fquote--contain .ps-fquote__img {
	display: block;
	max-width: 100%;
	max-height: 500px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* ---------------------------------------------------------------------------
 * Copy
 * --------------------------------------------------------------------------- */

.ps-fquote__copy {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ps-fquote__eyebrow {
	margin: 0;
	color: var(--red);
	font-family: var(--font);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ps-fquote__heading {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(1.7rem, 3.2vw, 2.4rem);
	line-height: 1.15;
	color: var(--teal);
	letter-spacing: 0.005em;
}

.ps-fquote__text {
	color: var(--grey-700);
	font-size: 1rem;
	line-height: 1.6;
}

.ps-fquote__text > :first-child { margin-top: 0; }
.ps-fquote__text > :last-child  { margin-bottom: 0; }

.ps-fquote__text p { margin: 0 0 0.9em; }

/* ---------------------------------------------------------------------------
 * Bullets
 * --------------------------------------------------------------------------- */

.ps-fquote__bullets {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ps-fquote__bullet {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--teal);
}

.ps-fquote__check {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: rgba(48, 166, 153, 0.15);
	color: var(--green);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
}

.ps-fquote__check-svg {
	width: 14px;
	height: 14px;
	stroke-width: 2.4;
}

.ps-fquote__bullet-text { flex: 1 1 auto; }

/* ---------------------------------------------------------------------------
 * Inline quote card (left-bar treatment, no fill)
 * --------------------------------------------------------------------------- */

.ps-fquote__quote {
	margin: 8px 0 0;
	padding: 4px 0 4px 16px;
	border-left: 4px solid var(--red);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ps-fquote__quote-text {
	margin: 0;
	padding: 0;
	font-family: var(--font);
	font-style: italic;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--teal);
}

.ps-fquote__quote-attr {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ps-fquote__quote-avatar {
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 999px;
	overflow: hidden;
	display: inline-flex;
	background: var(--sand);
}

.ps-fquote__quote-avatar-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ps-fquote__quote-author {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--teal);
	font-family: var(--font);
}

/* ---------------------------------------------------------------------------
 * CTA
 * --------------------------------------------------------------------------- */

.ps-fquote__cta {
	margin-top: 6px;
}

/* ---------------------------------------------------------------------------
 * Responsive
 * --------------------------------------------------------------------------- */

@media (max-width: 1023px) {
	.ps-fquote__inner { gap: 36px; }
	.ps-fquote--contain .ps-fquote__media-frame { padding: 20px; }
}

/* Tablet — slightly tighten ratios & balance copy weight against media. */
@media (min-width: 860px) and (max-width: 1023px) {
	.ps-fquote__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
	}
	.ps-fquote--cover .ps-fquote__media-frame { aspect-ratio: 1 / 1; }
	.ps-fquote--contain .ps-fquote__img { max-height: 420px; }
	.ps-fquote__copy { gap: 16px; }
}

/* Desktop — give the copy more vertical breathing room and a touch larger type. */
@media (min-width: 1024px) {
	.ps-fquote__inner {
		grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
		align-items: center;
	}
	.ps-fquote__copy { gap: 20px; }
	.ps-fquote__heading { font-size: clamp(1.85rem, 2.4vw, 2.15rem); line-height: 1.1; }
	.ps-fquote__text { font-size: 1.02rem; }
	.ps-fquote__bullet { font-size: 1rem; line-height: 1.55; }
	.ps-fquote__quote {
		margin-top: 10px;
		padding: 6px 0 6px 18px;
	}
	.ps-fquote__quote-text { font-size: 1.02rem; line-height: 1.6; }
	.ps-fquote__quote-avatar { width: 42px; height: 42px; flex-basis: 42px; }
	.ps-fquote__quote-author { font-size: 0.92rem; }
	.ps-fquote--contain .ps-fquote__media-frame { padding: 26px; }
	.ps-fquote--contain .ps-fquote__img { max-height: 460px; }
}

/* Wide desktop — keep heading from running away but allow card a bit more lift. */
@media (min-width: 1280px) {
	.ps-fquote__inner { gap: 60px; }
	.ps-fquote__heading { font-size: clamp(2rem, 2.3vw, 2.25rem); }
}

@media (max-width: 860px) {
	.ps-fquote__inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	/* Image first, regardless of left/right setting. */
	.ps-fquote__media,
	.ps-fquote--right .ps-fquote__media { order: 1; }
	.ps-fquote__copy,
	.ps-fquote--right .ps-fquote__copy  { order: 2; }

	.ps-fquote--cover .ps-fquote__media-frame { aspect-ratio: 16 / 10; }
	.ps-fquote--contain .ps-fquote__img { max-height: 380px; }
}

@media (max-width: 479px) {
	.ps-fquote__inner { gap: 22px; }
	.ps-fquote__copy { gap: 14px; }
	.ps-fquote--contain .ps-fquote__media-frame { padding: 16px; }
	.ps-fquote--contain .ps-fquote__img { max-height: 300px; }
	.ps-fquote__heading { font-size: clamp(1.5rem, 7vw, 1.9rem); }
	.ps-fquote__bullet { font-size: 0.95rem; }

	.ps-fquote__quote {
		padding-left: 12px;
		border-left-width: 3px;
	}
	.ps-fquote__quote-text { font-size: 0.95rem; }
}
