/**
 * Project pages: the facts panel and the block patterns editors reach for.
 *
 * Loaded on the front end for single project posts and, through
 * add_editor_style(), inside the block editor, so what they build is what
 * they get. Classes are prefixed proj- so nothing here can reach a
 * Beaver Builder page.
 */

/* --------------------------------------------------------------
 * Facts panel - template chrome, rendered from the ACF fields.
 * ------------------------------------------------------------ */

.proj-facts {
	background: #faf8f5;
	border-radius: 9px;
	padding: 32px 40px;
	margin: 0 0 40px;
}

.proj-facts-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 24px 40px;
	margin: 0;
}

.proj-facts-item dt {
	font-family: 'Nunito', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ff5102;
	margin: 0 0 4px;
}

.proj-facts-item dd {
	font-family: 'Nunito', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #1a1a1a;
	margin: 0;
}

.proj-facts-item dd a { color: #1a1a1a; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 690px) {
	.proj-facts { padding: 24px; }
	.proj-facts-list { gap: 20px; }
}

/* --------------------------------------------------------------
 * The block-editor content well.
 * ------------------------------------------------------------ */

.proj-content {
	max-width: 820px;
	margin-inline: auto;
	padding-inline: clamp(20px, 4vw, 40px);
	padding-block: 64px;
}

.proj-content > * + * { margin-top: 28px; }

.proj-content .wp-block-columns,
.proj-content .wp-block-group { margin-top: 40px; }

.proj-content h2 + .wp-block-group,
.proj-content h3 + .wp-block-group { margin-top: 0; }

.proj-content img { border-radius: 9px; }

@media (max-width: 690px) {
	.proj-content { padding-block: 40px; }
}

/* --------------------------------------------------------------
 * Patterns. Everything below is what the block patterns emit, so it
 * has to hold up in the editor as well as on the page.
 * ------------------------------------------------------------ */

.proj-section-heading,
.proj-content h2.proj-section-heading,
.proj-content h3.proj-section-heading {
	font-family: 'Noto Serif', serif;
	font-size: 28px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
	margin: 0 0 16px;
}

.proj-body p {
	font-family: 'Nunito', sans-serif;
	font-size: 18px;
	line-height: 1.7;
	color: #333333;
}

/* Customer quote */
.proj-quote {
	border-left: 3px solid #ff5102;
	padding: 8px 0 8px 28px;
	margin: 40px 0;
}

.proj-quote p {
	font-family: 'Noto Serif', serif;
	font-size: 22px;
	line-height: 1.5;
	color: #1a1a1a;
	margin: 0 0 12px;
}

.proj-quote cite {
	font-family: 'Nunito', sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	color: #5a5a5a;
}

/* Before and after pair */
.proj-beforeafter figcaption,
.proj-beforeafter .wp-block-image figcaption {
	font-family: 'Nunito', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5a5a5a;
	text-align: left;
	margin-top: 10px;
}

.proj-beforeafter img { border-radius: 9px; }

/* Extra details, the optional list for anything the facts panel does not cover */
.proj-details {
	border-top: 1px solid rgba(0,0,0,0.08);
	border-bottom: 1px solid rgba(0,0,0,0.08);
	padding: 24px 0;
	margin: 40px 0;
}

.proj-details ul { list-style: none; margin: 0; padding: 0; }

.proj-details li {
	font-family: 'Nunito', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #333333;
	padding: 6px 0 6px 22px;
	position: relative;
}

.proj-details li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 15px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ff5102;
}

/* Modula galleries sit flush with the design system's radius */
.proj-gallery .modula-item img,
.proj-gallery img { border-radius: 9px; }
