/**
 * Layout patterns for repo-synced static pages.
 * See agent-context/PAGE_LAYOUTS.md
 */

/* --- Site-wide soft atmosphere (all front-end pages) --- */
body {
	--bess-page-bg-color: #f6f4f1;
	--bess-page-bg-image: linear-gradient(
		165deg,
		#ffffff 0%,
		#f6f4f1 45%,
		#f3f1ed 100%
	);
	background-color: var(--bess-page-bg-color);
	background-image: var(--bess-page-bg-image);
	background-attachment: scroll;
}

/* OceanWP top bar — match body wash (theme often sets a solid fill) */
.top-header-wrap {
	background-color: var(--bess-page-bg-color);
	background-image: var(--bess-page-bg-image);
}

/* Keep main content readable over the wash */
#wrap,
#main,
.site-content,
.content-area {
	background-color: transparent;
}

/* Section headings — shared size across synced page patterns */
.bess-prose h2,
.bess-split__body h2,
.bess-stores__store h2,
.bess-contact__place h2,
.bess-contact h2,
.bess-gallery__item h2 {
	font-size: clamp(1.6rem, 2.4vw, 2rem);
	line-height: 1.25;
}

/* --- prose: legal / long-form text --- */
.bess-prose > *:first-child {
	margin-top: 0;
}

.bess-prose h2 {
	margin: 1.75em 0 0.6em;
	font-weight: 700;
}

.bess-prose p {
	margin: 0 0 1em;
	line-height: 1.7;
}

.bess-prose ul {
	margin: 0 0 1.25em;
	padding-left: 1.25em;
	line-height: 1.7;
}

.bess-prose li {
	margin-bottom: 0.35em;
}

/* --- split-media: zigzag text + image rows (ex-Elementor services) --- */
.bess-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem 2.5rem;
	align-items: center;
	margin: 0 0 2.75rem;
}

.bess-split--flip .bess-split__body {
	order: 2;
}

.bess-split--flip .bess-split__media {
	order: 1;
}

.bess-split__body {
	min-width: 0;
}

.bess-split:not(.bess-split--flip) .bess-split__body {
	text-align: right;
}

.bess-split--flip .bess-split__body {
	text-align: left;
}

.bess-split__body h2 {
	margin: 0 0 0.65em;
	font-weight: 600;
	color: #5ba3c9;
}

.bess-split__body p,
.bess-split__body ul {
	margin: 0 0 0.75em;
	line-height: 1.65;
	color: #555;
}

.bess-split__body ul {
	padding-left: 1.25em;
	list-style: disc;
}

.bess-split__body ul li {
	margin-bottom: 0.35em;
}

.bess-split__media {
	min-width: 0;
	margin: 0;
}

.bess-split__media img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.bess-split__media--placeholder {
	min-height: 12rem;
	background: #f0f0f0;
	border: 1px dashed #ccc;
}

@media (max-width: 767px) {
	.bess-split,
	.bess-split--flip {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.bess-split--flip .bess-split__body,
	.bess-split--flip .bess-split__media,
	.bess-split:not(.bess-split--flip) .bess-split__body,
	.bess-split:not(.bess-split--flip) .bess-split__media {
		order: unset;
	}

	.bess-split:not(.bess-split--flip) .bess-split__body,
	.bess-split--flip .bess-split__body {
		text-align: left;
	}

	/* Image above text on mobile for both variants */
	.bess-split .bess-split__media {
		order: -1;
	}
}

/* --- home: image strip --- */
.bess-home {
	margin: 0 0 2rem;
}

.bess-home-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.bess-home-gallery img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

@media (max-width: 767px) {
	.bess-home-gallery {
		grid-template-columns: 1fr;
	}
}

/* --- stores / contact --- */
.bess-stores__store,
.bess-contact__place {
	margin: 0 0 2.5rem;
}

.bess-stores__store h2,
.bess-contact__place h2,
.bess-contact h2 {
	margin: 0 0 0.5em;
	font-weight: 600;
}

.bess-stores__store p,
.bess-contact__place p,
.bess-contact__email {
	margin: 0 0 0.5em;
	line-height: 1.6;
}

.bess-stores__store ul {
	margin: 0 0 1em;
	padding-left: 1.2em;
	line-height: 1.6;
}

.bess-stores__map,
.bess-contact__maps {
	margin-top: 0.75rem;
}

.bess-stores__map iframe,
.bess-contact__maps iframe {
	display: block;
	max-width: 100%;
	border: 0;
}

.bess-contact__maps {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin: 0 0 2rem;
}

@media (max-width: 767px) {
	.bess-contact__maps {
		grid-template-columns: 1fr;
	}
}

/* --- gallery: curtain seam styles --- */
.bess-gallery__item {
	margin: 0 0 2.5rem;
	text-align: center;
}

.bess-gallery__item h2 {
	margin: 0 0 0.5em;
	font-weight: 600;
}

.bess-gallery__item p {
	margin: 0 0 1em;
	line-height: 1.6;
	color: #555;
}

.bess-gallery__media {
	margin: 0;
}

.bess-gallery__media img {
	display: inline-block;
	max-width: 100%;
	height: auto;
}

.bess-gallery__media--placeholder {
	min-height: 10rem;
	background: #f0f0f0;
	border: 1px dashed #ccc;
}
