/* Google Reviews carousel — homepage, between the install-process section
   (cloud background) and "Local experience" (white/no background). Navy
   here keeps the light/dark/light rhythm the rest of the homepage uses
   (see .sss-solutions, .sss-deals-more for the same navy treatment). */
.sss-google-reviews {
	padding-block: var(--sss-section-major);
	background: var(--sss-navy);
	color: var(--sss-cloud);
	overflow: hidden;
}

.sss-google-reviews__header {
	text-align: center;
	max-width: var(--sss-content-reading);
	margin-inline: auto;
	margin-bottom: var(--sss-space-5);
}

.sss-google-reviews__eyebrow {
	color: var(--sss-cyan);
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: var(--sss-space-2);
}

.sss-google-reviews__rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--sss-space-2);
	flex-wrap: wrap;
}

.sss-google-reviews__score {
	color: var(--sss-white);
	font-size: 1.0625rem;
}

.sss-google-reviews__score strong {
	font-family: var(--sss-font-heading);
	font-size: 1.375rem;
}

.sss-google-reviews__count {
	margin-top: var(--sss-space-1);
	color: var(--sss-cloud);
	opacity: 0.8;
	font-size: 0.9375rem;
}

/* Star row — reuses the outline lucide "star" icon for every star; filled
   state overrides the inline fill="none"/stroke="currentColor" the source
   SVG ships with with a solid gold fill instead of adding a second icon
   asset. Half state clips the icon at 50% width. */
.sss-google-reviews__stars {
	display: inline-flex;
	gap: 2px;
}

.sss-google-reviews__star {
	display: inline-flex;
	color: var(--sss-line);
}

.sss-google-reviews__star .sss-icon {
	width: 20px;
	height: 20px;
}

.sss-google-reviews__stars--sm .sss-icon {
	width: 15px;
	height: 15px;
}

.sss-google-reviews__star.is-filled,
.sss-google-reviews__star.is-half {
	color: #F5B400;
}

.sss-google-reviews__star.is-filled .sss-icon,
.sss-google-reviews__star.is-half .sss-icon {
	fill: currentColor;
}

.sss-google-reviews__star.is-half {
	position: relative;
	overflow: hidden;
}

.sss-google-reviews__star.is-half .sss-icon {
	position: absolute;
	inset: 0;
	clip-path: inset( 0 50% 0 0 );
}

.sss-google-reviews__star.is-half::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	color: var(--sss-line);
}

.sss-google-reviews__stars--sm .sss-google-reviews__star.is-half::before {
	width: 15px;
	height: 15px;
}

/* Carousel shell. */
.sss-google-reviews__carousel {
	position: relative;
	max-width: 920px;
	margin-inline: auto;
}

.sss-google-reviews__viewport {
	overflow: hidden;
}

/* Native scroll-snap does the heavy lifting for touch swipe, momentum and
   keyboard (a focused scrollable region responds to arrow keys in every
   major browser) — JS only drives the buttons/dots/autoplay on top of it. */
.sss-google-reviews__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.sss-google-reviews__track::-webkit-scrollbar {
	display: none;
}

.sss-google-reviews__track:focus-visible {
	outline: 2px solid var(--sss-cyan);
	outline-offset: 4px;
}

.sss-google-reviews__slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	padding-inline: var(--sss-space-2);
	box-sizing: border-box;
}

.sss-google-reviews__card {
	background: var(--sss-white);
	color: var(--sss-ink);
	border-radius: var(--sss-radius-lg);
	padding: var(--sss-space-4);
	height: 100%;
	/* Fixed-ish height (not exact) keeps the carousel from jumping between
	   short and long reviews — the clamp below caps text length, this
	   guarantees the card itself doesn't shrink for a one-line review. */
	min-height: 300px;
	display: flex;
	flex-direction: column;
	box-shadow: var(--sss-shadow-sm);
}

.sss-google-reviews__card-head {
	display: flex;
	align-items: center;
	gap: var(--sss-space-3);
	margin-bottom: var(--sss-space-3);
}

.sss-google-reviews__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.sss-google-reviews__avatar--placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--sss-cloud);
	color: var(--sss-slate);
	font-family: var(--sss-font-heading);
	font-weight: 700;
}

.sss-google-reviews__card-identity {
	min-width: 0;
}

.sss-google-reviews__author {
	font-weight: 600;
	color: var(--sss-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

a.sss-google-reviews__author:hover,
a.sss-google-reviews__author:focus-visible {
	color: var(--sss-blue);
	text-decoration: underline;
}

.sss-google-reviews__body {
	flex: 1;
}

.sss-google-reviews__text {
	color: var(--sss-slate);
	font-size: 0.9375rem;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sss-google-reviews__card.is-expanded .sss-google-reviews__text {
	-webkit-line-clamp: unset;
	overflow: visible;
}

.sss-google-reviews__readmore {
	margin-top: var(--sss-space-2);
	color: var(--sss-blue);
	font-weight: 600;
	font-size: 0.875rem;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.sss-google-reviews__readmore:hover,
.sss-google-reviews__readmore:focus-visible {
	text-decoration: underline;
}

.sss-google-reviews__time {
	margin-top: var(--sss-space-3);
	color: var(--sss-slate);
	opacity: 0.75;
	font-size: 0.8125rem;
}

/* Arrows. */
.sss-google-reviews__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--sss-white);
	color: var(--sss-ink);
	border: 1px solid var(--sss-line);
	box-shadow: var(--sss-shadow-sm);
	cursor: pointer;
}

.sss-google-reviews__arrow:hover,
.sss-google-reviews__arrow:focus-visible {
	color: var(--sss-blue);
	border-color: var(--sss-blue);
}

.sss-google-reviews__arrow--prev {
	left: -14px;
}

.sss-google-reviews__arrow--next {
	right: -14px;
}

.sss-google-reviews__arrow[disabled] {
	opacity: 0.4;
	cursor: default;
}

/* Dots. */
.sss-google-reviews__dots {
	display: flex;
	justify-content: center;
	gap: var(--sss-space-2);
	margin-top: var(--sss-space-4);
}

.sss-google-reviews__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	border: 0;
	cursor: pointer;
}

.sss-google-reviews__dot.is-active {
	background: var(--sss-cyan);
}

.sss-google-reviews__dot:focus-visible {
	outline: 2px solid var(--sss-cyan);
	outline-offset: 2px;
}

/* Footer — attribution (required by Google's API ToS) + the maps CTA. */
.sss-google-reviews__footer {
	margin-top: var(--sss-space-5);
	text-align: center;
}

.sss-google-reviews__attribution {
	font-size: 0.8125rem;
	color: var(--sss-cloud);
	opacity: 0.65;
	margin-bottom: var(--sss-space-3);
}

@media (prefers-reduced-motion: reduce) {
	.sss-google-reviews__track {
		scroll-behavior: auto;
	}
}

@media (max-width: 767px) {
	.sss-google-reviews__arrow {
		display: none;
	}

	.sss-google-reviews__card {
		min-height: 260px;
	}
}
