/**
 * DFL About 2 — split image / copy section with an edge pattern.
 *
 * No JavaScript: the layout is flexbox driven by custom properties, and every
 * value the panel controls is a property or a plain declaration the generated
 * widget CSS can override. Nothing here uses !important.
 */

.dfl-about2 {
	--dfl-a2-container: 1280px;
	--dfl-a2-media-w: 46%;
	--dfl-a2-gap: 62px;
	--dfl-a2-valign: center;
	--dfl-a2-text-align: start;
	--dfl-a2-items: start;
	--dfl-a2-content-max: 100%;
	--dfl-a2-image-h: 490px;
	--dfl-a2-eyebrow-gap: 22px;
	--dfl-a2-eyebrow-line-w: 60px;
	--dfl-a2-eyebrow-line-h: 1px;
	--dfl-a2-eyebrow-line-color: #c9a24d;
	--dfl-a2-pattern-w: 300px;
	--dfl-a2-pattern-x: 0px;
	--dfl-a2-pattern-y: 40px;
	--dfl-a2-pattern-opacity: 1;
	--dfl-a2-pattern-rotate: 0deg;
	--dfl-a2-pattern-flip: 1;

	position: relative;
	width: 100%;
	background-color: #f7f7f5;
}

.dfl-about2 *,
.dfl-about2 *::before,
.dfl-about2 *::after {
	box-sizing: border-box;
}

/* Keeps the pattern from spilling past the section it belongs to. */
.dfl-about2--clip {
	overflow: hidden;
}

.dfl-about2__container {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: var(--dfl-a2-valign, center);
	gap: var(--dfl-a2-gap, 62px);
	width: 100%;
	max-width: var(--dfl-a2-container, 1280px);
	margin-left: auto;
	margin-right: auto;
	padding: 80px 24px;
}

.dfl-about2--media-right .dfl-about2__container {
	flex-direction: row-reverse;
}

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

.dfl-about2__media {
	flex: 0 0 var(--dfl-a2-media-w, 46%);
	max-width: var(--dfl-a2-media-w, 46%);
	min-width: 0;
	align-self: var(--dfl-a2-valign, center);
}

.dfl-about2--image-stretch .dfl-about2__media {
	align-self: stretch;
}

.dfl-about2__image {
	position: relative;
	display: block;
	width: 100%;
	height: var(--dfl-a2-image-h, 490px);
	overflow: hidden;
	line-height: 0;
}

/* When the column stretches, the set height becomes the floor instead. */
.dfl-about2--image-stretch .dfl-about2__image {
	height: 100%;
	min-height: var(--dfl-a2-image-h, 490px);
}

.dfl-about2__image img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* The overlay control switches this on by setting `content`. */
.dfl-about2__image::after {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.dfl-about2__image--empty {
	background-color: rgba(20, 16, 11, 0.06);
}

/* -------------------------------- Content -------------------------------- */

.dfl-about2__content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: var(--dfl-a2-items, start);
	min-width: 0;
	max-width: var(--dfl-a2-content-max, 100%);
	text-align: var(--dfl-a2-text-align, start);
}

.dfl-about2__eyebrow {
	display: flex;
	align-items: center;
	gap: var(--dfl-a2-eyebrow-gap, 22px);
	max-width: 100%;
	margin: 0 0 26px;
	color: #b08d45;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1.4;
	text-transform: uppercase;
}

.dfl-about2__eyebrow-text {
	display: block;
	min-width: 0;
}

.dfl-about2__eyebrow-line {
	display: block;
	flex: 0 0 auto;
	width: var(--dfl-a2-eyebrow-line-w, 60px);
	height: var(--dfl-a2-eyebrow-line-h, 1px);
	background-color: var(--dfl-a2-eyebrow-line-color, #c9a24d);
}

.dfl-about2__heading {
	max-width: 100%;
	margin: 0 0 26px;
	color: #14100b;
	font-size: 46px;
	font-weight: 500;
	line-height: 1.18;
}

.dfl-about2__heading em,
.dfl-about2__heading .dfl-accent {
	color: #b08d45;
	font-style: inherit;
}

.dfl-about2__description {
	max-width: 100%;
	margin: 0;
	color: #4a443b;
	font-size: 16px;
	line-height: 1.85;
}

.dfl-about2__description > *:first-child {
	margin-top: 0;
}

.dfl-about2__description > *:last-child {
	margin-bottom: 0;
}

.dfl-about2__description p {
	margin: 0;
}

.dfl-about2__description > * + * {
	margin-top: 18px;
}

.dfl-about2__description strong,
.dfl-about2__description b {
	color: #14100b;
	font-weight: 700;
}

.dfl-about2__description ul,
.dfl-about2__description ol {
	padding-left: 1.25em;
	margin: 0;
}

/* -------------------------------- Button --------------------------------- */

.dfl-about2__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: var(--dfl-a2-items, start);
	max-width: 100%;
	margin-top: 34px;
}

.dfl-about2__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 18px 40px;
	border: 1px solid #1d1a16;
	border-radius: 2px;
	background-color: #1d1a16;
	color: #fffef3;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition-property: color, background-color, border-color, box-shadow, transform;
	transition-duration: 300ms;
	transition-timing-function: ease;
}

.dfl-about2__button:hover,
.dfl-about2__button:focus {
	text-decoration: none;
}

.dfl-about2__button:focus-visible {
	outline: 2px solid #c9a24d;
	outline-offset: 3px;
}

.dfl-about2__button-label {
	display: inline-block;
}

.dfl-about2__button-icon {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.dfl-about2__button-icon i,
.dfl-about2__button-icon svg {
	width: 1em;
	height: 1em;
	font-size: inherit;
	fill: currentColor;
}

/* -------------------------------- Pattern -------------------------------- */

.dfl-about2__pattern {
	position: absolute;
	z-index: 1;
	width: var(--dfl-a2-pattern-w, 300px);
	max-width: 60%;
	line-height: 0;
	opacity: var(--dfl-a2-pattern-opacity, 1);
	pointer-events: none;
	user-select: none;
}

.dfl-about2__pattern img {
	display: block;
	width: 100%;
	height: auto;
	transform: rotate(var(--dfl-a2-pattern-rotate, 0deg)) scaleX(var(--dfl-a2-pattern-flip, 1));
}

.dfl-about2--pattern-front .dfl-about2__pattern {
	z-index: 3;
}

.dfl-about2--pattern-right .dfl-about2__pattern {
	right: var(--dfl-a2-pattern-x, 0px);
}

.dfl-about2--pattern-left .dfl-about2__pattern {
	left: var(--dfl-a2-pattern-x, 0px);
}

.dfl-about2--pattern-top .dfl-about2__pattern {
	top: var(--dfl-a2-pattern-y, 40px);
}

.dfl-about2--pattern-bottom .dfl-about2__pattern {
	bottom: var(--dfl-a2-pattern-y, 40px);
}

/* Middle anchors on the centre line, then shifts by the offset. */
.dfl-about2--pattern-middle .dfl-about2__pattern {
	top: 50%;
	transform: translateY(calc(-50% + var(--dfl-a2-pattern-y, 40px)));
}

/* ------------------------------- Responsive ------------------------------ */

@media (max-width: 1024px) {
	.dfl-about2--pattern-hide-tablet .dfl-about2__pattern {
		display: none;
	}
}

@media (max-width: 767px) {
	.dfl-about2__container,
	.dfl-about2--media-right .dfl-about2__container {
		flex-direction: column;
	}

	.dfl-about2--stack-media-last .dfl-about2__container,
	.dfl-about2--media-right.dfl-about2--stack-media-last .dfl-about2__container {
		flex-direction: column-reverse;
	}

	/* Stacked columns always run full width — a percentage split reads as a
	 * stray gutter once the copy is underneath the image. */
	.dfl-about2__media,
	.dfl-about2__content {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
		align-self: auto;
	}

	.dfl-about2--pattern-hide-mobile .dfl-about2__pattern {
		display: none;
	}

	.dfl-about2--button-full-mobile .dfl-about2__actions {
		width: 100%;
	}

	.dfl-about2--button-full-mobile .dfl-about2__button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dfl-about2__image img,
	.dfl-about2__button {
		transition-duration: 1ms;
	}
}
