/* SamSam Google Reviews Block - front end styles */

.sgr-section {
	background: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	position: relative;
}

/* Full-bleed: break the section out of whatever max-width/boxed
   container Elementor's page, section or column settings put around
   it, so the background colour and waves always reach both edges of
   the browser window. The inner .sgr-container keeps its own
   comfortable max-width regardless — only the background stretches. */
.sgr-section-bleed {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
}

/* ---------- Wave dividers (same convex/concave pattern as the rest of the plugin) ---------- */
.sgr-wave-top,
.sgr-wave-bottom {
	display: block;
	width: 100%;
	height: 70px;
	line-height: 0;
	overflow: hidden;
	background-color: #ffffff;
}

.sgr-wave-top svg,
.sgr-wave-bottom svg {
	display: block;
	width: 100%;
	height: 100%;
}

.sgr-wave-top path,
.sgr-wave-bottom path {
	fill: #ffffff;
}

@media (max-width: 600px) {
	.sgr-wave-top,
	.sgr-wave-bottom {
		height: 40px;
	}
}

.sgr-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 70px 24px;
}

.sgr-heading {
	margin: 0 0 18px;
	color: #4a9b7f;
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
}

.sgr-subheading {
	max-width: 760px;
	margin: 0 auto 50px;
	color: #333333;
	font-size: 15px;
	line-height: 1.7;
	text-align: center;
}

/* ---------- Carousel ---------- */
.sgr-carousel {
	position: relative;
}

.sgr-track {
	display: flex;
	align-items: stretch;
	gap: 28px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 6px 6px 22px;
	margin: -6px -6px -22px;
	cursor: grab;

	/* Hide the native scrollbar — the custom progress bar below takes over. */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.sgr-track::-webkit-scrollbar {
	display: none;
	height: 0;
}

.sgr-track.sgr-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
}

.sgr-card {
	flex: 0 0 auto;
	width: 340px;
	scroll-snap-align: start;
	display: block;
	line-height: 0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
	background: #ffffff;
	-webkit-user-drag: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.sgr-card {
	text-decoration: none;
}

.sgr-card img {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
	user-select: none;
}

.sgr-card-placeholder {
	width: 100%;
	aspect-ratio: 4 / 3;
	background: rgba(0, 0, 0, 0.05);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(0, 0, 0, 0.35);
	font-size: 13px;
	text-align: center;
	padding: 20px;
}

/* ---------- Nav arrows ---------- */
.sgr-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: #4a4a4a;
	color: #ffffff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 3;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.sgr-arrow:hover {
	background: #2f2f2f;
	color: #ffffff;
}

.sgr-arrow svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sgr-arrow-prev {
	left: -14px;
}

.sgr-arrow-next {
	right: -14px;
}

.sgr-arrow[disabled] {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

@media (max-width: 640px) {
	.sgr-arrow {
		display: none;
	}
}

/* ---------- Scroll progress bar ---------- */
.sgr-progress-track {
	position: relative;
	max-width: 220px;
	height: 5px;
	margin: 26px auto 0;
	background: rgba(74, 155, 127, 0.18);
	border-radius: 10px;
	overflow: hidden;
}

.sgr-progress-thumb {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 33%;
	background: #4a9b7f;
	border-radius: 10px;
	transition: left 0.1s linear, width 0.1s linear;
}

/* ---------- Call to action button ---------- */
.sgr-cta-wrap {
	margin-top: 40px;
	text-align: center;
}

.sgr-btn {
	display: inline-block;
	background: #4a9b7f;
	color: #ffffff;
	text-decoration: none;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 15px 34px;
	border-radius: 24px;
	transition: background-color 0.15s ease, transform 0.15s ease;
	border: none;
	cursor: pointer;
}

.sgr-btn:hover,
.sgr-btn:focus {
	background: #3f8870;
	color: #ffffff;
	transform: translateY(-1px);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.sgr-container {
		padding: 50px 20px;
	}

	.sgr-card {
		width: 78vw;
	}
}
