/*
 * digiloom: "Why We Weave" mission split.
 * Source: Figma Make `Home.tsx` section 3 — square gradient-washed image panel
 * beside the mission copy and commitment checklist. The prototype orders the
 * image second on mobile and first on desktop.
 */

.digiloom-mission {
	align-items: center;
	background-color: rgba(248, 250, 252, 0.8);
	border: 1px solid var(--wp--preset--color--slate-line);
	border-radius: var(--wp--custom--radius--xxxl);
	box-shadow: var(--wp--preset--shadow--lifted);
	display: grid;
	gap: 32px;
	grid-template-columns: 1fr;
	padding: 32px;
}

@media (min-width: 782px) {

	.digiloom-mission {
		gap: 64px;
		grid-template-columns: 1fr 1fr;
		padding: 48px;
	}
}

/* Image panel -------------------------------------------------------- */

.digiloom-mission__media {
	order: 2;
	position: relative;
}

@media (min-width: 782px) {

	.digiloom-mission__media {
		order: 1;
	}
}

.digiloom-mission__image {
	aspect-ratio: 1;
	background-color: var(--wp--preset--color--ink);
	border-radius: 32px;
	box-shadow: var(--wp--preset--shadow--lifted);
	margin: 0;
	overflow: hidden;
	position: relative;
}

.digiloom-mission__image img {
	display: block;
	height: 100%;
	mix-blend-mode: overlay;
	object-fit: cover;
	opacity: 0.6;
	width: 100%;
}

/* Brand gradient wash over the photograph. */
.digiloom-mission__image::before {
	background-image: var(--wp--custom--brand--gradient-diagonal, linear-gradient(45deg, #4f46e5 0%, #9333ea 50%, #ec4899 100%));
	content: "";
	inset: 0;
	mix-blend-mode: screen;
	opacity: 0.8;
	position: absolute;
	z-index: 1;
}

/* Centred emblem, matching the prototype's frosted icon tile. */
.digiloom-mission__image::after {
	background-color: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--wp--custom--radius--lg);
	content: "";
	height: 112px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 112px;
	z-index: 2;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5'/%3E%3Cpath d='M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66'/%3E%3Cpath d='m18 15-2-2'/%3E%3Cpath d='m15 18-2-2'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 64px 64px;
}

/* Copy side ---------------------------------------------------------- */

.digiloom-mission__body {
	order: 1;
}

@media (min-width: 782px) {

	.digiloom-mission__body {
		order: 2;
	}
}

.digiloom-mission__title {
	line-height: 1.15;
	margin: 0;
}

/*
 * The short pink rule under the heading.
 * Core's constrained layout centres block children, so the inline margins are
 * pinned explicitly to keep the rule flush left under the heading.
 */
.digiloom-rule.wp-block-separator {
	background-color: var(--wp--preset--color--pink);
	border: 0;
	border-radius: var(--wp--custom--radius--full);
	display: block;
	height: 4px;
	max-width: 48px;
	opacity: 1;
	width: 48px;
}

.digiloom-mission__lead {
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--wp--custom--line-height--body);
}

.digiloom-mission__lead strong {
	color: var(--wp--preset--color--ink);
}

/* Commitment checklist ----------------------------------------------- */

.digiloom-checklist {
	margin-bottom: 0;
}

.digiloom-checklist > li {
	align-items: flex-start;
	color: #334155;
	display: flex;
	font-weight: var(--wp--custom--font-weight--medium);
	gap: 12px;
}

.digiloom-checklist > li::before {
	background-color: var(--wp--preset--color--indigo-line);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234338ca' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 12px 12px;
	border-radius: var(--wp--custom--radius--full);
	content: "";
	flex: 0 0 auto;
	height: 24px;
	margin-top: 2px;
	width: 24px;
}

.digiloom-checklist > li:nth-child(2)::before {
	background-color: #f3e8ff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237e22ce' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.digiloom-checklist > li:nth-child(3)::before {
	background-color: #fce7f3;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be185d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
