/* SamSam Flexible Section - front end styles */

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

/* 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 .sfs-container keeps its own
   comfortable max-width regardless — only the background stretches. */
.sfs-section-bleed {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
}

/* ---------- Wave dividers (shared shape language with every other
   SamSam block, so a Flexible Section drops in seamlessly next to
   Impact Section, Step Cards, etc). ---------- */
.sfs-wave-top,
.sfs-wave-bottom {
	display: block;
	width: 100%;
	height: 70px;
	line-height: 0;
	overflow: hidden;
	background-color: #ffffff;
	position: relative;
	z-index: 2;
}

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

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

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

/* ---------- Shared layout shell ---------- */
.sfs-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 80px 24px;
	position: relative;
	z-index: 1;
}

.sfs-eyebrow {
	display: inline-block;
	margin: 0 0 12px;
	color: #4a9b7f;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sfs-heading {
	margin: 0 0 20px;
	color: #4a9b7f;
	font-size: clamp(30px, 3.6vw, 44px);
	font-weight: 800;
	line-height: 1.15;
}

.sfs-subheading p {
	margin: 0 0 16px;
	color: #333333;
	font-size: 15px;
	line-height: 1.75;
}

.sfs-subheading p:last-child {
	margin-bottom: 0;
}

/* ---------- Checklist ---------- */
.sfs-checklist {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sfs-checklist-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.sfs-checklist-icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	object-fit: contain;
	margin-top: 2px;
}

.sfs-checklist-icon-default {
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	border-radius: 50%;
	background: #4a9b7f;
	position: relative;
}

.sfs-checklist-icon-default::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 3px;
	width: 6px;
	height: 10px;
	border-right: 2px solid #ffffff;
	border-bottom: 2px solid #ffffff;
	transform: rotate(45deg);
}

.sfs-checklist-text {
	color: #333333;
	font-size: 14px;
	line-height: 1.6;
}

/* ---------- Buttons ---------- */
.sfs-cta-wrap {
	margin-top: 30px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.sfs-content-center .sfs-cta-wrap {
	justify-content: center;
}

.sfs-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;
	border: 2px solid transparent;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

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

.sfs-btn-outline {
	background: transparent;
	color: #4a9b7f;
	border-color: #4a9b7f;
}

.sfs-btn-outline:hover,
.sfs-btn-outline:focus {
	background: #4a9b7f;
	color: #ffffff;
}

.sfs-layout-centered .sfs-btn-outline,
.sfs-centered-wrap .sfs-btn-outline {
	color: #ffffff;
	border-color: #ffffff;
}

.sfs-layout-centered .sfs-btn-outline:hover,
.sfs-centered-wrap .sfs-btn-outline:hover {
	background: #ffffff;
	color: #4a9b7f;
}

/* ==========================================================
 * Layout: Media & Text
 * ========================================================== */
.sfs-media-text-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 60px;
	align-items: center;
}

.sfs-media-text-wrap .sfs-content {
	order: 1;
}

.sfs-media-text-wrap .sfs-media {
	order: 2;
}

.sfs-section.sfs-image-left .sfs-media-text-wrap .sfs-content {
	order: 2;
}

.sfs-section.sfs-image-left .sfs-media-text-wrap .sfs-media {
	order: 1;
}

.sfs-media img {
	display: block;
	width: 100%;
	height: 440px;
	object-fit: cover;
	object-position: center center;
	border-radius: 24px;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
}

/* ==========================================================
 * Layout: Columns Grid
 * ========================================================== */
.sfs-content-center {
	text-align: center;
	max-width: 760px;
	margin: 0 auto;
}

.sfs-align-left {
	text-align: left;
}

.sfs-align-left .sfs-content-center {
	margin: 0;
}

.sfs-align-right {
	text-align: right;
}

.sfs-align-right .sfs-content-center {
	margin: 0 0 0 auto;
}

.sfs-columns {
	--sfs-cols: 3;
	display: grid;
	grid-template-columns: repeat(var(--sfs-cols), 1fr);
	gap: 32px;
	margin-top: 48px;
}

.sfs-card {
	text-align: left;
}

.sfs-card-style-boxed .sfs-card {
	background: #ffffff;
	border-radius: 18px;
	padding: 32px 26px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.sfs-card-icon {
	margin-bottom: 18px;
}

.sfs-card-icon img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.sfs-card-title {
	margin: 0 0 10px;
	color: #4a9b7f;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.sfs-card-description p {
	margin: 0 0 10px;
	color: #333333;
	font-size: 14px;
	line-height: 1.7;
}

.sfs-card-description p:last-child {
	margin-bottom: 0;
}

.sfs-card-link {
	display: inline-block;
	margin-top: 14px;
	color: #4a9b7f;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	border-bottom: 2px solid #4a9b7f;
}

.sfs-card-link:hover {
	color: #3f8870;
	border-color: #3f8870;
}

/* ==========================================================
 * Layout: Centered CTA
 * ========================================================== */
.sfs-centered-wrap {
	position: relative;
}

.sfs-centered-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.sfs-centered-overlay {
	position: absolute;
	inset: 0;
}

.sfs-centered-wrap.sfs-has-bg .sfs-heading,
.sfs-centered-wrap.sfs-has-bg .sfs-eyebrow {
	color: #ffffff;
}

.sfs-centered-wrap.sfs-has-bg .sfs-subheading p,
.sfs-centered-wrap.sfs-has-bg .sfs-checklist-text {
	color: #f2f2f2;
}

.sfs-centered-inner {
	position: relative;
	z-index: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.sfs-media-text-wrap {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.sfs-media-text-wrap .sfs-content,
	.sfs-media-text-wrap .sfs-media,
	.sfs-section.sfs-image-left .sfs-media-text-wrap .sfs-content,
	.sfs-section.sfs-image-left .sfs-media-text-wrap .sfs-media {
		order: initial;
	}

	.sfs-columns {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.sfs-container {
		padding: 50px 20px;
	}

	.sfs-media img {
		height: 320px;
	}

	.sfs-columns {
		grid-template-columns: 1fr;
	}

	.sfs-cta-wrap {
		flex-direction: column;
		align-items: stretch;
	}

	.sfs-btn {
		text-align: center;
	}
}
