/**
 * Block patterns (patterns/*.php): the front page section design for pages built in the block
 * editor. Loaded on the front end and in the editor.
 */

.sg-p-section {
	padding-block: clamp(56px, 8vw, 96px);
}

/* Two plain sections share their spacing; a colored band keeps its own. */
.sg-p-section:not(.has-background) + .sg-p-section:not(.has-background) {
	padding-top: 0;
}

/* A page that starts or ends with a colored band: no white strip under the title bar or above the footer. */
.sg-site:has(.sg-entry__content > .sg-p-section.has-background:first-child) .sg-title-bar {
	margin-bottom: 0;
}

.sg-main:has(.sg-entry__content > .sg-p-section.has-background:last-child) {
	padding-bottom: 0;
}

.sg-p-eyebrow {
	margin-bottom: 12px;
	color: var(--sg-color-accent, #a85a14);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.sg-p-title {
	margin-top: 0;
	font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.65rem);
	line-height: 1.15;
}

h1.sg-p-title {
	font-size: clamp(2.35rem, 1.3rem + 3.6vw, 3.25rem);
}

.sg-p-intro {
	max-width: 720px;
	margin-inline: auto;
	color: var(--sg-color-muted, #6b7280);
	font-size: 1.1rem;
}

.sg-p-intro:not(.has-text-align-center) {
	margin-inline: 0;
}

.sg-p-section.sg-p-section--brand :is(h2, h3, p, .sg-p-title, .sg-p-intro, .sg-p-eyebrow) {
	color: #fff;
}

.sg-p-section--brand .wp-block-button__link {
	background: #fff;
	color: var(--sg-color-primary, #1f3a5f);
}

/* Cards */
.sg-p-cards {
	gap: 24px;
	margin-top: 40px;
}

.sg-p-cards + .sg-p-cards {
	margin-top: 24px;
}

.sg-p-card {
	height: 100%;
	padding: 32px;
	border: 1px solid var(--sg-color-line, #e5e7eb);
	border-radius: calc(var(--sg-radius, 8px) * 1.5);
	background: var(--sg-color-bg, #fff);
}

.sg-p-card__title {
	margin: 0 0 8px;
	font-size: 1.25rem;
}

.sg-p-card__text {
	margin: 0;
	color: var(--sg-color-muted, #6b7280);
}

/* Checklist */
.sg-p-checks {
	padding: 0;
	list-style: none;
}

.sg-p-checks li {
	position: relative;
	margin: 0 0 8px;
	padding-left: 28px;
	font-weight: 500;
}

.sg-p-checks li::before {
	content: "";
	position: absolute;
	top: 0.35em;
	left: 2px;
	width: 12px;
	height: 6px;
	border-bottom: 2px solid var(--sg-color-accent, #a85a14);
	border-left: 2px solid var(--sg-color-accent, #a85a14);
	transform: rotate(-45deg);
}

/* Split columns, numbers */
.sg-p-split {
	gap: clamp(32px, 6vw, 80px);
}

.sg-p-stat {
	padding: 20px 0;
	border-bottom: 1px solid var(--sg-color-line, #e5e7eb);
}

.sg-p-stat__number {
	margin: 0;
	color: var(--sg-color-primary, #1f3a5f);
	font-size: clamp(2rem, 1.4rem + 1.8vw, 2.75rem);
	font-weight: 700;
	line-height: 1.1;
}

.sg-p-stat__label {
	margin: 4px 0 0;
	color: var(--sg-color-muted, #6b7280);
}

/* Steps */
.sg-p-steps {
	gap: 32px;
	margin-top: 40px;
	counter-reset: sg-p-step;
}

.sg-p-steps > .wp-block-column {
	position: relative;
	padding-top: 72px;
	counter-increment: sg-p-step;
}

.sg-p-steps > .wp-block-column::before {
	content: counter(sg-p-step, decimal-leading-zero);
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--sg-color-primary, #1f3a5f);
	color: #fff;
	font-weight: 700;
}

.sg-p-step__title {
	margin: 0 0 8px;
	font-size: 1.25rem;
}

.sg-p-step__text {
	margin: 0;
	color: var(--sg-color-muted, #6b7280);
}

/* Quotes */
.sg-p-quotes {
	gap: 24px;
	margin-top: 40px;
}

.wp-block-quote.sg-p-quote {
	height: 100%;
	margin: 0;
	padding: 32px;
	border: 0;
	border-radius: calc(var(--sg-radius, 8px) * 1.5);
	background: var(--sg-color-bg, #fff);
	font-size: 1.05rem;
}

.wp-block-quote.sg-p-quote cite {
	display: block;
	margin-top: 16px;
	color: var(--sg-color-muted, #6b7280);
	font-size: 0.92rem;
	font-style: normal;
}

/* Questions */
.sg-p-faqs {
	max-width: 820px;
	margin: 40px auto 0;
	border-top: 1px solid var(--sg-color-line, #e5e7eb);
}

.wp-block-details.sg-p-faq {
	padding: 18px 0;
	border-bottom: 1px solid var(--sg-color-line, #e5e7eb);
}

.wp-block-details.sg-p-faq summary {
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
}

.wp-block-details.sg-p-faq > p {
	margin: 12px 0 0;
	color: var(--sg-color-muted, #6b7280);
}

/* Contact details, call to action */
.sg-p-contact p {
	margin: 0 0 16px;
}

.sg-p-cta {
	gap: 24px 48px;
}

@media (max-width: 781px) {
	.sg-p-cta .wp-block-buttons {
		justify-content: flex-start;
	}
}
