/*
 * FSM Features: Testimonials post type styles
 * [fsm_testimonials] output: orange band cards, dealer stories cards, avatar circles,
 * stars. Loaded by includes/testimonials.php, after the theme sheets.
 * Split out of style.css in theme v3.3.0.
 */

/* ================================================================== */
/* 10. Testimonial band (orange, diagonal stripes)                     */
/* ================================================================== */
.fsm-quotes__stage { margin-top: 28px !important; }
.fsm-quote-card {
	background: #faf6f1;
	color: var(--fsm-plum);
	border-radius: 6px;
	padding: 32px 32px 20px;
}
.fsm-quote-card[hidden] { display: none; }
.fsm-quote-card__text { display: grid; grid-template-columns: 50px 1fr; font-family: var(--fsm-heading); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; max-width: 840px; }
.fsm-quote-card__text::before { content: "\201C"; color: var(--fsm-orange); font-size: 3.5rem; line-height: 0.8; font-weight: 700; }
.fsm-quote-card__foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--fsm-stroke); margin-top: 48px; padding-top: 18px; }
.fsm-quote-card__name { font-family: var(--fsm-heading); font-weight: 700; font-size: 0.95rem; }
.fsm-quote-card__role { font-size: 0.8125rem; color: var(--fsm-secondary); margin-top: 4px; }
.fsm-quote-card__tag { font-size: 0.625rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; margin-right: 18%; }
/* ================================================================== */
/* 16. Page specific components                                        */
/* ================================================================== */
/* Home: dealer stories */
@media (prefers-reduced-motion: reduce) {
	.fsm-story, .fsm-story .fsm-story__text { transition: none !important; }
}
/* ================================================================== */
/* 17. Responsive                                                      */
/* ================================================================== */
@media (max-width: 600px) {
	.fsm-quote-card__text { grid-template-columns: 1fr; }
	.fsm-quote-card__foot { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 960px) {
	.fsm-stories .fsm-story { padding: 24px !important; }
}
@media (max-width: 960px) {
	.fsm-stories .fsm-story.is-center { box-shadow: none; }
}
/* ================================================================== */
/* Home: dealer stories carousel. Cards sit in a grid until the script is ready. */
.fsm-stories { margin-top: 56px !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fsm-story {
	box-sizing: border-box; background: var(--fsm-bone); color: var(--fsm-plum); border-radius: 10px; padding: 24px;
	border-top: 4px solid transparent; margin: 0 !important;
}
.fsm-story::before { content: "\201C"; display: block; color: var(--fsm-orange); font-family: var(--fsm-heading); font-weight: 700; font-size: 2.5rem; line-height: 1; }
.fsm-story > * { margin: 0 !important; }
.fsm-story > .fsm-story__text { font-family: var(--fsm-heading); font-weight: 600; font-size: 1.1rem; line-height: 1.4; margin-top: 44px !important; min-height: 5em; color: var(--fsm-plum); }
.fsm-story > .fsm-story__who { display: grid; grid-template-columns: 1fr; column-gap: 10px; align-items: center; border-top: 1px solid rgba(22, 0, 50, 0.15); margin-top: 32px !important; padding-top: 14px; font-size: 0.75rem; }
.fsm-story__who:has(> i) { grid-template-columns: 32px 1fr; }
.fsm-story__who > i { grid-row: 1 / span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fsm-blue); color: #fff; font-style: normal; font-weight: 600; }
.fsm-story__who .fsm-story__name { font-weight: 700; font-size: 0.8125rem; color: var(--fsm-plum); }
.fsm-story__who .fsm-story__role { font-size: 0.75rem; color: var(--fsm-plum); }
.fsm-story > .fsm-story__tag { font-size: 0.5625rem; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 10px !important; opacity: 0.7; color: var(--fsm-plum); }
body:not(.editor-styles-wrapper) .fsm-stories:not(.is-ready) { visibility: hidden; }
.fsm-stories.is-ready { display: block; position: relative; min-height: 420px; }
.fsm-stories.is-ready .fsm-story {
	position: absolute; top: 50%; left: 29%; width: 42%; transform: translateY(-50%);
	background: rgba(242, 232, 222, 0.72); z-index: 1; opacity: 1;
	transition: left 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.45s ease, background-color 0.6s ease, box-shadow 0.6s ease, padding 0.6s ease;
}
.fsm-stories.is-ready .fsm-story.no-anim { transition: none !important; }
.fsm-stories.is-ready .fsm-story.is-left { left: 0; width: 36%; padding-right: calc(7% + 40px); cursor: pointer; }
.fsm-stories.is-ready .fsm-story.is-right { left: 64%; width: 36%; padding-left: calc(7% + 40px); cursor: pointer; }
.fsm-stories.is-ready .fsm-story.is-left:hover, .fsm-stories.is-ready .fsm-story.is-right:hover { background: rgba(242, 232, 222, 0.85); }
.fsm-stories.is-ready .fsm-story.is-off-left { left: -40%; width: 36%; opacity: 0; pointer-events: none; }
.fsm-stories.is-ready .fsm-story.is-off-right { left: 104%; width: 36%; opacity: 0; pointer-events: none; }
.fsm-stories.is-ready .fsm-story.is-center { left: 29%; width: 42%; z-index: 3; background: var(--fsm-bone); padding: 28px 26px 18px; border-top-color: var(--fsm-orange); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.fsm-stories.is-ready .fsm-story .fsm-story__text { transition: font-size 0.6s ease, margin 0.6s ease; }
.fsm-stories.is-ready .fsm-story.is-center .fsm-story__text { font-size: 1.5rem; margin-top: 52px !important; }
@media (prefers-reduced-motion: reduce) {
	.fsm-stories.is-ready .fsm-story, .fsm-stories.is-ready .fsm-story .fsm-story__text { transition: none !important; }
}
@media (max-width: 960px) {
	.fsm-stories { grid-template-columns: 1fr; }
	.fsm-stories.is-ready { overflow: hidden; }
	.fsm-stories.is-ready .fsm-story { padding: 24px !important; }
	.fsm-stories.is-ready .fsm-story.is-center { left: 0; width: 100%; box-shadow: none; }
	.fsm-stories.is-ready .fsm-story.is-left, .fsm-stories.is-ready .fsm-story.is-off-left { left: -105%; width: 100%; opacity: 0; pointer-events: none; }
	.fsm-stories.is-ready .fsm-story.is-right, .fsm-stories.is-ready .fsm-story.is-off-right { left: 105%; width: 100%; opacity: 0; pointer-events: none; }
}
/* Testimonial band */
.fsm-quotes__stage > * { margin: 0 !important; }
.fsm-quote-card > * { margin: 0 !important; }
.fsm-quote-card > .fsm-quote-card__foot { margin-top: 48px !important; }
.fsm-quote-card__foot .fsm-quote-card__role { margin-top: 4px !important; }
body:not(.editor-styles-wrapper) .fsm-quotes__stage:not(.is-ready) .fsm-quote-card ~ .fsm-quote-card,
body:not(.editor-styles-wrapper) .fsm-quotes__stage.is-ready .fsm-quote-card:not(.is-active) { display: none; }
.editor-styles-wrapper .fsm-quotes__stage { display: grid; gap: 16px; }
/* ================================================================== */
/* 20. Responsive for the pattern components                           */
/* ================================================================== */
@media (max-width: 600px) {
	.fsm-quote-card__foot { flex-direction: column; align-items: flex-start; gap: 12px; }
}
/* ================================================================== */
/* Round avatar: photo or logo from the testimonial, or the first letter. */
.fsm-avatar { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--fsm-blue); color: #fff; font-style: normal; font-family: var(--fsm-heading); font-weight: 600; font-size: 1.125rem; line-height: 1; }
.fsm-avatar--photo { background: #fff; border: 1px solid var(--fsm-stroke); }
.fsm-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Orange band */
.fsm-quote-card__text { grid-template-columns: 48px 1fr; font-family: var(--fsm-body); font-weight: 400; font-size: 1.625rem; line-height: 1.4; max-width: 920px; }
.fsm-quote-card__text::before { font-family: var(--fsm-heading); font-size: 3.5rem; line-height: 0.8; }
.fsm-quote-card__who { display: flex; align-items: center; gap: 14px; }
.fsm-quote-card__who > * { margin: 0 !important; }
.fsm-quote-card__person > * { margin: 0 !important; }
.fsm-quote-card__person .fsm-quote-card__name { font-size: 1.125rem; line-height: 1.2; }
.fsm-quote-card__person .fsm-quote-card__role { margin-top: 2px !important; font-size: 1rem; line-height: 1.3; }
/* Dealer stories: quote mark sits on the first line of the quote */
.fsm-story::before { content: none; display: none; }
.fsm-story > .fsm-story__text { display: grid; grid-template-columns: 40px 1fr; margin-top: 0 !important; font-family: var(--fsm-body); font-weight: 400; line-height: 1.3; }
.fsm-story > .fsm-story__text::before { content: "\201C"; color: var(--fsm-orange); font-family: var(--fsm-heading); font-weight: 700; font-size: 3rem; line-height: 0.85; }
.fsm-stories.is-ready .fsm-story.is-center .fsm-story__text { font-size: var(--wp--preset--font-size--large); margin-top: 0 !important; grid-template-columns: 48px 1fr; }
.fsm-stories.is-ready .fsm-story.is-center .fsm-story__text::before { font-size: 3.5rem; }
.fsm-story__who:has(> i) { grid-template-columns: 48px 1fr; column-gap: 12px; }
.fsm-story__who > i { width: 48px; height: 48px; }
@media (max-width: 600px) {
	.fsm-quote-card__text, .fsm-story > .fsm-story__text, .fsm-stories.is-ready .fsm-story.is-center .fsm-story__text { grid-template-columns: 1fr; }
}

/* Testimonial slider quote (2026-10-17): Roboto regular 20px, smaller orange quote mark */
.fsm-quote-card__text { grid-template-columns: 40px 1fr; font-family: var(--fsm-body); font-weight: 400; font-size: 1.25rem; line-height: 1.5; max-width: 880px; }
.fsm-quote-card__text::before { font-size: 2.5rem; line-height: 0.9; }

/* Reviews (2026-10-18): stars first, review text, then reviewer name and
   date on the left and the source (Google, Facebook, any text) on the right.
   No quote mark and no avatar. */
.fsm-review .fsm-review__stars { margin: 0 0 14px !important; line-height: 1; }
.fsm-review .fsm-stars { font-size: 1.375rem; letter-spacing: 3px; white-space: nowrap; }
.fsm-review .fsm-stars-on { color: #F5B82E; }
.fsm-review .fsm-stars-off { color: rgba(22, 0, 50, 0.18); }
.fsm-review .fsm-quote-card__text, .fsm-review.fsm-story > .fsm-story__text { display: block; }
.fsm-review .fsm-quote-card__text::before, .fsm-review.fsm-story > .fsm-story__text::before, .fsm-review.fsm-story::before { content: none; display: none; }
.fsm-review .fsm-review__foot { display: flex !important; align-items: flex-end; justify-content: space-between; gap: 16px; }
.fsm-review .fsm-review__foot > * { margin: 0 !important; }
.fsm-review .fsm-review__person > * { margin: 0 !important; }
.fsm-review .fsm-review__person > * + * { margin-top: 4px !important; }
.fsm-review .fsm-review__source { flex-shrink: 0; font-size: 0.875rem; font-weight: 600; color: var(--fsm-secondary); text-align: right; }
.fsm-review.fsm-story .fsm-review__stars { margin-top: 0 !important; }
.fsm-review.fsm-story .fsm-stars { font-size: 1.125rem; }
.fsm-review.fsm-story > .fsm-story__text { margin-top: 0 !important; }
@media (max-width: 600px) { .fsm-review .fsm-quote-card__foot.fsm-review__foot { flex-direction: row; align-items: flex-end; } }

/* Review cards, 2026-10-20: no orange top border, name left with the date
   under it, Google or Facebook icon on the right. */
.fsm-story.fsm-review, .fsm-stories.is-ready .fsm-story.fsm-review.is-center { border-top: 0; }
.fsm-review .fsm-review__foot { align-items: center; }
.fsm-review .fsm-review__person { text-align: left; }
.fsm-review.fsm-story .fsm-story__who .fsm-story__name { font-size: 1rem; }
.fsm-review.fsm-story .fsm-story__who .fsm-story__role { font-size: 0.875rem; opacity: 0.75; }
.fsm-review .fsm-review__source--icon { line-height: 0; }
.fsm-review .fsm-review__source--icon svg { display: block; width: 32px; height: 32px; }
.fsm-review .fsm-review__source--icon .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ================================================================== */
/* Carousel v2 (2026-10-20): smoother slides. Cards keep one size and
   one text size, and move with transform (translate and scale) instead
   of left, width, padding and font size, so the motion stays smooth.
   The script gives every card the height of the tallest one. */
.fsm-stories.is-ready .fsm-story {
	--fsm-sx: 0%; --fsm-ss: 1;
	left: 50%; width: 44%; top: 50%;
	display: flex; flex-direction: column;
	padding: 32px 32px 24px !important;
	transform: translate(-50%, -50%) translateX(var(--fsm-sx)) scale(var(--fsm-ss));
	transform-origin: center center;
	transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.85s ease, background-color 0.85s ease, box-shadow 0.85s ease;
	will-change: transform, opacity;
	backface-visibility: hidden;
}
.fsm-stories.is-ready .fsm-story.is-center { --fsm-sx: 0%; --fsm-ss: 1; left: 50%; width: 44%; padding: 32px 32px 24px !important; border-top-color: transparent; z-index: 3; }
.fsm-stories.is-ready .fsm-story.is-left { --fsm-sx: -70%; --fsm-ss: 0.86; left: 50%; width: 44%; padding: 32px 32px 24px !important; z-index: 2; }
.fsm-stories.is-ready .fsm-story.is-right { --fsm-sx: 70%; --fsm-ss: 0.86; left: 50%; width: 44%; padding: 32px 32px 24px !important; z-index: 2; }
.fsm-stories.is-ready .fsm-story.is-off-left { --fsm-sx: -140%; --fsm-ss: 0.72; left: 50%; width: 44%; opacity: 0; z-index: 1; }
.fsm-stories.is-ready .fsm-story.is-off-right { --fsm-sx: 140%; --fsm-ss: 0.72; left: 50%; width: 44%; opacity: 0; z-index: 1; }
.fsm-stories.is-ready .fsm-story .fsm-story__text,
.fsm-stories.is-ready .fsm-story.is-center .fsm-story__text { font-size: 1.1875rem; line-height: 1.5; margin: 0 0 28px !important; transition: none; }
.fsm-stories.is-ready .fsm-story > .fsm-story__who { margin-top: auto !important; }
@media (prefers-reduced-motion: reduce) {
	.fsm-stories.is-ready .fsm-story { transition: opacity 0.2s ease !important; }
}
@media (max-width: 960px) {
	.fsm-stories.is-ready .fsm-story,
	.fsm-stories.is-ready .fsm-story.is-center,
	.fsm-stories.is-ready .fsm-story.is-left,
	.fsm-stories.is-ready .fsm-story.is-right,
	.fsm-stories.is-ready .fsm-story.is-off-left,
	.fsm-stories.is-ready .fsm-story.is-off-right { width: 100%; padding: 24px !important; }
	.fsm-stories.is-ready .fsm-story.is-left, .fsm-stories.is-ready .fsm-story.is-off-left { --fsm-sx: -110%; --fsm-ss: 0.92; opacity: 0; }
	.fsm-stories.is-ready .fsm-story.is-right, .fsm-stories.is-ready .fsm-story.is-off-right { --fsm-sx: 110%; --fsm-ss: 0.92; opacity: 0; }
	.fsm-stories.is-ready .fsm-story .fsm-story__text, .fsm-stories.is-ready .fsm-story.is-center .fsm-story__text { font-size: 1.0625rem; }
}
