/**
 * Comfy Section – frontend styles (class-based only)
 * Higher specificity where needed to beat theme “centre everything” rules.
 */

.comfy-section {
	--cs-cream: #f8f7f4;
	--cs-sage: #a3b18b;
	--cs-sage-soft: #e8ede3;
	--cs-sage-deep: #5f7352;
	--cs-sage-muted: #6b7c5e;
	--cs-purple: #540d5e;
	--cs-text: #3f3f3f;
	--cs-heading: #540d5e;
	--cs-radius-img: 16px;
	--cs-radius-btn: 8px;
	--cs-max: 1180px;

	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 6rem 1.5rem;
	background-color: var(--cs-cream);
	color: var(--cs-text);
}

.comfy-section *,
.comfy-section *::before,
.comfy-section *::after {
	box-sizing: border-box;
}

.comfy-section--bg-cream { background-color: var(--cs-cream); }
.comfy-section--bg-white { background-color: #ffffff; }
.comfy-section--bg-sage-soft { background-color: var(--cs-sage-soft); }
.comfy-section--bg-sage { background-color: var(--cs-sage); color: #1a1a1a; }
.comfy-section--bg-transparent { background-color: transparent; }

.comfy-section__inner {
	max-width: var(--cs-max);
	margin: 0 auto;
}

.comfy-section__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4rem 5rem;
}

.comfy-section__content {
	flex: 1 1 280px;
	max-width: 48%;
	min-width: 0;
	text-align: left;
}

.comfy-section__media {
	flex: 1 1 300px;
	max-width: 52%;
	min-width: 0;
}

.comfy-section--media-left .comfy-section__content { order: 2; }
.comfy-section--media-left .comfy-section__media { order: 1; }

/* Eyebrow */
.entry-content .comfy-section .comfy-section__eyebrow,
.comfy-section .comfy-section__eyebrow,
.comfy-section__eyebrow {
	margin: 0 0 0.5rem;
	padding: 0;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cs-sage-muted);
	line-height: 1.4;
	text-align: left !important;
	max-width: none;
}

/* Heading – left, brand purple, no theme measure limits */
.entry-content .comfy-section .comfy-section__heading,
.entry-content .comfy-section h2.comfy-section__heading,
.comfy-section .comfy-section__heading,
.comfy-section h2.comfy-section__heading,
.comfy-section__heading {
	margin: 0.5rem 0 1.35rem !important;
	padding: 0 !important;
	font-size: clamp(2rem, 4vw, 2.75rem) !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.01em;
	color: var(--cs-heading) !important;
	text-align: left !important;
	max-width: none !important;
	width: 100% !important;
	float: none !important;
}

/* Body – left, readable size, no 42rem centre column */
.entry-content .comfy-section .comfy-section__text,
.entry-content .comfy-section p.comfy-section__text,
.comfy-section .comfy-section__text,
.comfy-section p.comfy-section__text,
.comfy-section__text {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 1.125rem !important;
	line-height: 1.7 !important;
	color: var(--cs-text) !important;
	text-align: left !important;
	max-width: none !important;
	width: 100% !important;
	float: none !important;
}

.comfy-section__actions {
	margin-top: 2.25rem;
	text-align: left;
}

.comfy-section__button {
	display: inline-block;
	padding: 0.9rem 1.75rem;
	border-radius: var(--cs-radius-btn);
	background-color: var(--cs-sage-deep) !important;
	background: var(--cs-sage-deep) !important;
	border-color: var(--cs-sage-deep) !important;
	color: #ffffff !important;
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.3;
	text-decoration: none !important;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
	box-shadow: none;
	text-align: center;
}

.comfy-section__button:hover,
.comfy-section__button:focus {
	background-color: #4a5c3f !important;
	background: #4a5c3f !important;
	border-color: #4a5c3f !important;
	color: #ffffff !important;
	text-decoration: none !important;
}

.comfy-section__button--static {
	cursor: default;
}

.comfy-section__figure {
	margin: 0;
	padding: 0;
	line-height: 0;
}

.comfy-section__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--cs-radius-img);
	object-fit: cover;
}

@media (max-width: 781px) {
	.comfy-section {
		padding: 4rem 1.25rem;
	}

	.comfy-section__grid {
		flex-direction: column;
		gap: 2.5rem;
	}

	.comfy-section__content,
	.comfy-section__media {
		max-width: 100%;
		width: 100%;
		flex-basis: auto;
	}

	.comfy-section--media-left .comfy-section__content,
	.comfy-section--media-right .comfy-section__content {
		order: 1;
	}
	.comfy-section--media-left .comfy-section__media,
	.comfy-section--media-right .comfy-section__media {
		order: 2;
	}

	.entry-content .comfy-section .comfy-section__heading,
	.comfy-section .comfy-section__heading {
		font-size: clamp(1.75rem, 5vw, 2.25rem) !important;
	}

	.entry-content .comfy-section .comfy-section__text,
	.comfy-section .comfy-section__text {
		font-size: 1.15rem !important;
	}
}

@media (max-width: 480px) {
	.comfy-section {
		padding: 3rem 1rem;
	}

	.comfy-section__button {
		display: block;
		width: 100%;
		text-align: center;
	}
}
