/*
	Theme Name: Hello Elementor Child — MW Building Services
	Theme URI: https://mw-v2.dev2.vooba-dev.co.uk
	Description: Child theme of Hello Elementor for the MW Building Services London Ltd site. Design tokens live in Elementor globals, not here.
	Author: Vooba
	Author URI: https://vooba.co.uk
	Template: hello-elementor
	Version: 1.3.0
	Requires at least: 6.0
	Requires PHP: 7.4
	Text Domain: hello-elementor-child
*/

/*
 * Site styles come from Elementor (kit globals, V4 variables, global classes).
 * Add CSS here only for markup Elementor does not render: post content and
 * shortcode output. Values come from the Elementor variables (var(--label)).
 */

/* --- Case study body (post content inside .case-body) ------------------- */

.case-body p,
.case-body .case-label,
.case-body .case-gallery {
	margin: 0;
}

.case-body :is(p, .case-label, .case-gallery) + :is(p, .case-label, .case-gallery) {
	margin-top: 20px;
}

.case-body .case-block + .case-block,
.case-body .case-block + .case-gallery {
	margin-top: 36px;
}

/* Inside a block: 16px. Specific enough (0,4,0) to beat the 20px sibling rule. */
.case-body .case-block > :is(p, .case-label) + :is(p, .case-label) {
	margin-top: 16px;
}

.case-body p {
	font-family: var(--font-body);
	font-weight: 300;
	font-size: var(--text-lead);
	line-height: 1.7;
	color: var(--body);
}

.case-body .case-label {
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: var(--text-ui);
	line-height: 1.65;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

.case-body .case-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	padding: 0;
	list-style: none;
}

.case-body .case-gallery li {
	aspect-ratio: 1;
	overflow: hidden;
}

.case-body .case-gallery a {
	display: block;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
}

.case-body .case-gallery a:focus-visible {
	outline-offset: -3px !important;
}

.case-body .case-gallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.case-body .case-gallery a:hover img {
	transform: scale(1.04);
}

@media (max-width: 767px) {
	.case-body p {
		font-size: var(--text-body);
	}
}

@media (max-width: 575px) {
	.case-body .case-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* --- [mw_case_meta] inside .case-meta-row (the V4 paragraph strips classes,
   so the shortcode markup is targeted by structure) ------------------------- */

.case-meta-row > span {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
}

.case-meta-row > span > span {
	display: flex;
	flex-direction: column;
}

.case-meta-row > span > span > span:first-child {
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: var(--text-ui);
	line-height: 28px; /* the export's label sits in a 17px x 1.65 body line box */
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

.case-meta-row > span > span > span:last-child {
	margin-top: 4px;
	font-family: var(--font-body);
	font-weight: 300;
	font-size: var(--text-16);
	line-height: 1.65;
	color: var(--heading);
}

@media (max-width: 767px) {
	.case-meta-row > span {
		gap: 24px 40px;
	}
}

/* --- [mw_case_pager] inside .case-pager-row (targeted by structure) ------- */

.case-pager-row > span {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.case-pager-row a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: inherit;
	text-decoration: none;
}

.case-pager-row a:last-child {
	margin-left: auto;
	text-align: right;
}

.case-pager-row a > span:first-child {
	font-family: var(--font-body);
	font-weight: 300;
	font-size: var(--text-ui);
	line-height: 1.65;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.case-pager-row a > span:last-child {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: var(--text-body);
	line-height: 1.3;
	color: var(--heading);
	transition: color 0.25s ease;
}

.case-pager-row a:hover > span:last-child,
.case-pager-row a:focus-visible > span:last-child {
	color: var(--navy);
}

@media (max-width: 575px) {
	.case-pager-row > span {
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
	}

	.case-pager-row a:last-child {
		margin-left: 0;
		text-align: left;
	}
}
