/*
 * Project blocks layer
 *
 * NOTE: This file contains only shared, cross-block layout helpers.
 * Each block keeps its own styles inside /blocks/<block>/style.css
 */

.sbs-section {
	margin: 48px 0;
}

@media (min-width: 481px) {
	.sbs-section {
		margin: 64px 0;
	}
}

.sbs-container {
	width: min(1120px, calc(100% - 32px));
	margin-left: auto;
	margin-right: auto;
}

.sbs-full-bg {
	width: 100%;
	background-color: var(--sbs-full-bg-color, rgba(0, 0, 0, 0.03));
	padding-left: env(safe-area-inset-left, 0);
	padding-right: env(safe-area-inset-right, 0);
}

.sbs-full-bg .wp-block-group__inner-container {
	width: min(1120px, calc(100% - 32px));
	margin-left: auto;
	margin-right: auto;
}

.sbs-section__header {
	text-align: center;
	margin-bottom: 32px;
}

.sbs-section__title {
	margin: 0;
	font-size: 30px;
	line-height: 1.15;
	text-align: center;
}

@media (min-width: 481px) {
	.sbs-section__title {
		font-size: 36px;
	}
}

.sbs-section__subtitle {
	margin: 12px auto 0;
	font-size: 18px;
	line-height: 1.6;
	opacity: 0.9;
}

.sbs-section__cta {
	margin-top: 32px;
	text-align: center;
}

/* Legacy helper (used by some early blocks). Prefer .sbs-btn from components.css */
.sbs-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 22px;
	border-radius: 14px;
	text-decoration: none;
	font-weight: 700;
	background: var(--wp--preset--color--brand-red);
	color: var(--wp--preset--color--surface);
	transition: transform 160ms ease, background 160ms ease;
}

.sbs-button:hover {
	background: var(--wp--preset--color--brand-red-dark);
	transform: translateY(-1px);
}

.sbs-button:focus {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

