/* Sketch Suite — Performance Testimonials
   A dark rounded card: rating badge + emphasis headline, then a scroll-snap
   rail of review cards with prev/next arrows. */

.skpt {
	--skpt-card-bg: #0a0a0a;
	--skpt-text: #ffffff;
	--skpt-accent: #c8f169;
	--skpt-muted: color-mix(in srgb, var(--skpt-text) 55%, transparent);
	/* Opaque so the "read more" gradient can fade to the exact card colour. */
	--skpt-slide-bg: color-mix(in srgb, var(--skpt-text) 7%, var(--skpt-card-bg));
	--skpt-lines: 5;
	--skpt-radius: 34px;
	--skpt-pad: clamp(28px, 4vw, 60px);
	box-sizing: border-box;
	width: 100%;
	padding: 0 clamp(16px, 4vw, 48px);
	font-family: var(--sk-font, "Saans", system-ui, -apple-system, "Segoe UI", sans-serif);
}
.skpt *,
.skpt *::before,
.skpt *::after { box-sizing: border-box; }

.skpt-card {
	max-width: 1440px;
	margin: 0 auto;
	background: var(--skpt-card-bg);
	color: var(--skpt-text);
	border-radius: var(--skpt-radius);
	padding: var(--skpt-pad);
	position: relative;
	overflow: hidden;
}

/* ── Header ─────────────────────────────────────────────── */
.skpt-head {
	display: grid;
	grid-template-columns: minmax(220px, 0.9fr) 1.6fr;
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
	margin-bottom: clamp(32px, 5vw, 64px);
}

.skpt-stat {
	font-size: clamp(56px, 7vw, 108px);
	font-weight: 600;
	line-height: 0.9;
	letter-spacing: -0.03em;
}

.skpt-rating {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 18px;
}
.skpt-faces { display: flex; }
.skpt-face {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid var(--skpt-card-bg);
	margin-left: -12px;
	background: var(--skpt-slide-bg);
	flex: none;
}
.skpt-face:first-child { margin-left: 0; }
.skpt-face img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; }

.skpt-rating__text { display: flex; flex-direction: column; gap: 2px; }
.skpt-rating__row { display: flex; align-items: center; gap: 8px; line-height: 1; }
.skpt-rating__num { font-size: 18px; font-weight: 600; }
.skpt-stars { display: inline-flex; gap: 2px; }
.skpt-star { width: 17px; height: 17px; fill: var(--skpt-muted); }
.skpt-star.is-on { fill: var(--skpt-accent); }
.skpt-rating__label {
	display: block;
	font-size: 13px;
	line-height: 1.2;
	color: var(--skpt-muted);
}

.skpt-intro { align-self: center; }
.skpt-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font-size: 15px;
	color: var(--skpt-muted);
}
.skpt-eyebrow__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--skpt-accent);
	flex: none;
}
.skpt-heading {
	margin: 0;
	font-size: clamp(30px, 4.4vw, 62px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.02em;
	color: var(--skpt-heading, var(--skpt-text));
}
.skpt-heading .skpt-em {
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-weight: 500;
}

/* ── Rail ───────────────────────────────────────────────── */
.skpt-rail {
	display: flex;
	gap: clamp(16px, 1.6vw, 24px);
	/* No user scrolling on pointer devices — the arrows are the only way to page.
	   `hidden` (rather than `clip`) keeps the box programmatically scrollable, so
	   the arrow JS can still scrollBy(). It also kills the implicit
	   `overflow-y: auto` that `overflow-x: auto` forces on the other axis, which
	   was swallowing the page wheel and making the section feel like it trapped
	   the scroll. Touch devices re-enable the swipe below. */
	overflow: hidden;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
	outline: none;
}
/* Swipe is the natural gesture on touch, so give those devices the rail back.
   The vertical axis stays locked so the page scroll is never caught. */
@media (hover: none) and (pointer: coarse) {
	.skpt-rail {
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x proximity;
		overscroll-behavior-x: contain;
	}
}
.skpt-rail::-webkit-scrollbar { display: none; }

.skpt-slide {
	flex: 0 0 calc((100% - 2 * clamp(16px, 1.6vw, 24px)) / 3);
	min-width: 0;
	scroll-snap-align: start;
	background: var(--skpt-slide-bg);
	border-radius: 22px;
	padding: clamp(22px, 2vw, 32px);
	display: flex;
	flex-direction: column;
	gap: 26px;
}

/* Featured image strip — fixed height so every card matches; multiple images
   stack and cross-fade on hover (see JS). */
.skpt-media {
	position: relative;
	width: 100%;
	height: var(--skpt-media-h, 200px);
	border-radius: 16px;
	overflow: hidden;
	flex: none;
	background: color-mix(in srgb, var(--skpt-text) 10%, transparent);
}
.skpt-media__img {
	position: absolute;
	inset: 0;
	/* !important defeats BeTheme's `img:not([src$=".svg"]){height:auto}` rule —
	   its :not([attr]) gives it higher specificity than a single class, so
	   without this the photo won't cover the fixed-height box. */
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.14s ease;
}
.skpt-media__img.is-active { opacity: 1; }

/* Auto-playing muted preview clip — fills the box over the poster image.
   Files use object-fit:cover; iframes are size-to-cover in JS and centred. */
.skpt-preview {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 1;
	pointer-events: none;
}
.skpt-preview__media {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 0;
	/* Defeat BeTheme's `iframe{max-width:100%}`, which caps the cover width and
	   forces a letterbox when the box is taller than 16:9. */
	max-width: none !important;
	max-height: none !important;
}
video.skpt-preview__media {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* Play button — sits bottom-left over the image, opens the video lightbox. */
.skpt-play {
	position: absolute;
	left: 14px;
	bottom: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px 8px 8px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	background: rgba(10, 10, 10, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.15s ease, transform 0.15s ease;
}
.skpt-play:hover { background: rgba(10, 10, 10, 0.75); transform: translateY(-1px); }
.skpt-play__icon {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--skpt-accent);
	color: #0a0a0a;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
}
.skpt-play__icon svg { width: 15px; height: 15px; margin-left: 1px; }

/* Video lightbox. */
.skpt-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vw;
	background: rgba(0, 0, 0, 0.85);
}
.skpt-lightbox[hidden] { display: none; }
.skpt-lightbox__frame {
	position: relative;
	width: min(1100px, 100%);
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 14px;
	overflow: hidden;
}
.skpt-lightbox__frame iframe,
.skpt-lightbox__frame video {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}
.skpt-lightbox__close {
	position: absolute;
	top: 18px;
	right: 22px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 26px;
	line-height: 1;
}
.skpt-lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }

.skpt-quote-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 0;
}
.skpt-quote-clip { position: relative; align-self: stretch; }
.skpt-quote {
	margin: 0;
	font-size: clamp(15px, 1.15vw, 18px);
	line-height: 1.6;
	color: var(--skpt-muted);
}
.skpt-quote strong { color: var(--skpt-text); font-weight: 600; }

/* Clamped state: limit to N lines and fade the tail out to the card colour. */
.skpt-quote-wrap.is-clamped .skpt-quote {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--skpt-lines, 5);
	line-clamp: var(--skpt-lines, 5);
	overflow: hidden;
}
.skpt-quote-wrap.is-clamped .skpt-quote-clip::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3.4em;
	pointer-events: none;
	background: linear-gradient(to bottom, transparent, var(--skpt-slide-bg));
}

.skpt-readmore {
	margin-top: 10px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--skpt-text);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}
.skpt-readmore:hover { color: var(--skpt-accent); }

.skpt-author { display: flex; align-items: center; gap: 14px; }
.skpt-author__avatar {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	overflow: hidden;
	flex: none;
	background: color-mix(in srgb, var(--skpt-text) 12%, transparent);
}
.skpt-author__avatar img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; }
.skpt-author__name { display: block; font-weight: 600; font-size: 18px; }
.skpt-author__role { display: block; font-size: 14px; color: var(--skpt-muted); margin-top: 2px; }

/* ── Nav arrows ─────────────────────────────────────────── */
.skpt-nav {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: clamp(24px, 3vw, 40px);
}
.skpt-arrow {
	width: 58px;
	height: 58px;
	border-radius: 16px;
	border: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.skpt-arrow svg { width: 22px; height: 22px; }
.skpt-prev { background: #ffffff; color: #0a0a0a; }
.skpt-next { background: var(--skpt-accent); color: #0a0a0a; }
.skpt-arrow:hover:not(:disabled) { transform: translateY(-2px); }
.skpt-arrow:disabled { opacity: 0.35; cursor: default; }

/* ── Grid variant ([sketch_written_grid]) ───────────────── */
.skpt-grid {
	/* Full-bleed band: break out of any centred page container. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: var(--skpt-card-bg);
	color: var(--skpt-text);
	padding: clamp(40px, 6vw, 96px) clamp(16px, 4vw, 64px);
}
.skpt-grid__clip { position: relative; }
.skpt-grid__inner {
	display: grid;
	grid-template-columns: repeat(var(--skpt-cols, 4), minmax(0, 1fr));
	gap: clamp(16px, 1.6vw, 28px);
	align-items: stretch;
}
/* Grid cells are grid items, not flex children — neutralise the rail sizing. */
.skpt-grid .skpt-slide { flex: initial; scroll-snap-align: none; }

.skpt-grid__fade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 220px;
	pointer-events: none;
	background: linear-gradient(to bottom, transparent, var(--skpt-card-bg));
}
.skpt-grid__fade[hidden] { display: none; }

.skpt-grid__more-wrap { display: flex; justify-content: center; margin-top: 34px; }
.skpt-grid__more-wrap[hidden] { display: none; }
.skpt-grid__more {
	border: 0;
	cursor: pointer;
	background: var(--skpt-accent);
	color: #0a0a0a;
	font: inherit;
	font-weight: 600;
	font-size: 15px;
	padding: 14px 32px;
	border-radius: 999px;
	transition: transform 0.15s ease, filter 0.15s ease;
}
.skpt-grid__more:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* ── Page mode: band reaches the very top, behind the header ─ */
.skpt-grid--page {
	/* Top padding clears the overlaid (fixed) header + a little breathing room. */
	padding-top: clamp(88px, 10vh, 124px);
}
.skpt-grid__head {
	max-width: 940px;
	margin: 0 auto clamp(30px, 4vw, 60px);
	text-align: center;
}
/* Centre the eyebrow (it's an inline-flex row) and its dot within the header. */
.skpt-grid__head .skpt-eyebrow { justify-content: center; }
.skpt-grid__desc { margin-left: auto; margin-right: auto; }
.skpt-grid__title {
	margin: 10px 0 0;
	font-size: clamp(38px, 6vw, 84px);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.02em;
	color: var(--skpt-heading, var(--skpt-text));
}
.skpt-grid__title .skpt-em {
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-weight: 500;
}
.skpt-grid__desc {
	margin: 18px 0 0;
	max-width: 700px;
	font-size: clamp(16px, 1.4vw, 20px);
	line-height: 1.6;
	color: var(--skpt-muted);
}

/* When the page renders the grid in page mode, let the band sit behind the
   header: wipe the top spacing common page builders add above the shortcode. */
body.skpt-page .vc_row,
body.skpt-page .vc_column-inner,
body.skpt-page .wpb_text_column,
body.skpt-page .wpb_wrapper,
body.skpt-page .entry-content,
body.skpt-page .post-content,
body.skpt-page .the_content_wrapper,
body.skpt-page .sections_group,
body.skpt-page #Content,
body.skpt-page main {
	/* Zero top AND bottom spacing so the band reaches the header and the footer
	   with no white gap above or below. */
	padding-top: 0 !important;
	margin-top: 0 !important;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

/* Make the global header float transparently over the band — desktop only, so
   the mobile burger stays legible on its normal background. Mirrors the
   home-hero overlap treatment for a consistent look. */
@media (min-width: 769px) {
	body.skpt-page .skgh {
		position: fixed !important;
		top: var(--skgh-sticky-offset, 10px) !important;
		left: var(--skgh-side-gap, 10px) !important;
		right: var(--skgh-side-gap, 10px) !important;
		margin: 0 !important;
	}
	body.skpt-page .skgh:not(.skgh--scrolled) .skgh__pill {
		background: transparent !important;
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
		border-color: transparent !important;
		box-shadow: none !important;
	}
	/* Dark band only: force the floating header white so it reads over the band.
	   On a light band (body.skpt-page--light) the header keeps its normal dark
	   ink and dark logo, so these rules are scoped away from it. */
	body.skpt-page:not(.skpt-page--light) .skgh:not(.skgh--scrolled),
	body.skpt-page:not(.skpt-page--light) .skgh:not(.skgh--scrolled) .skgh__nav-link,
	body.skpt-page:not(.skpt-page--light) .skgh:not(.skgh--scrolled) .skgh__logo,
	body.skpt-page:not(.skpt-page--light) .skgh:not(.skgh--scrolled) .skgh__logo-text,
	body.skpt-page:not(.skpt-page--light) .skgh:not(.skgh--scrolled) .skgh__nav-plus,
	body.skpt-page:not(.skpt-page--light) .skgh:not(.skgh--scrolled) .skgh__toggle-bars span {
		color: #ffffff !important;
	}
	body.skpt-page:not(.skpt-page--light) .skgh:not(.skgh--scrolled) .skgh__toggle-bars span { background: #ffffff !important; }
	body.skpt-page:not(.skpt-page--light) .skgh:not(.skgh--scrolled) .skgh__logo--has-alt .skgh__logo-img--default { display: none; }
	body.skpt-page:not(.skpt-page--light) .skgh:not(.skgh--scrolled) .skgh__logo--has-alt .skgh__logo-img--alt { display: block; }
}
@media (max-width: 768px) {
	/* The header sits in-flow above the band on mobile, so only breathing room
	   is needed here (not full header clearance). */
	.skpt-grid--page { padding-top: clamp(28px, 6vh, 52px); }
}

@media (max-width: 1100px) { .skpt-grid__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px)  { .skpt-grid__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .skpt-grid__inner { grid-template-columns: 1fr; } }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
	.skpt-head { grid-template-columns: 1fr; }
	.skpt-slide { flex-basis: calc((100% - clamp(16px, 1.6vw, 24px)) / 2); }
}
@media (max-width: 640px) {
	/* Full-bleed on mobile: card spans the whole viewport width, square edges.
	   Scoped away from the grid, which manages its own padding. */
	.skpt:not(.skpt-grid) { padding: 0; }
	.skpt-card { border-radius: 0; }
	.skpt-slide { flex-basis: 86%; }
	/* Let the rail bleed to the right screen edge so the next card peeks;
	   the first card still lines up with the header on the left. */
	.skpt-rail { margin-right: calc(-1 * var(--skpt-pad)); }
	/* Arrows to the left on mobile. */
	.skpt-nav { justify-content: flex-start; }
	/* A little breathing room above/below the rating row on mobile. */
	.skpt-rating { padding: 10px 0; }
}
