/**
 * DFL About — split image / copy section with an optional feature-icon row.
 * No JavaScript: the layout is pure flexbox driven by custom properties.
 */

.dfl-about {
	--dfl-media-width: 50%;
	--dfl-col-gap: 0px;
	--dfl-col-align: stretch;
	--dfl-text-align: start;
	--dfl-feat-cols: 3;
	--dfl-feat-gap: 24px;
	--dfl-feat-align: start;

	display: flex;
	align-items: var(--dfl-col-align, stretch);
	gap: var(--dfl-col-gap, 0px);
	width: 100%;
}

.dfl-about *,
.dfl-about *::before,
.dfl-about *::after {
	box-sizing: border-box;
}

/* --------------------------------- Image --------------------------------- */

.dfl-about__image {
	position: relative;
	flex: 0 0 var(--dfl-media-width, 50%);
	max-width: var(--dfl-media-width, 50%);
	align-self: stretch;
	min-height: 560px;
	overflow: hidden;
	line-height: 0;
}

.dfl-about__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/* Overlay tint; the colour control also switches the content on. */
.dfl-about__image::after {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.dfl-about__image--empty {
	background-color: rgba(20, 16, 11, 0.06);
}

.dfl-about--media-right {
	flex-direction: row-reverse;
}

/* -------------------------------- Content -------------------------------- */

.dfl-about__content {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	min-width: 0;
	padding: 70px;
}

.dfl-about__inner {
	width: 100%;
	max-width: 100%;
	text-align: var(--dfl-text-align, start);
}

.dfl-about__eyebrow {
	margin-bottom: 22px;
	color: #b08d45;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.dfl-about__heading {
	margin: 0 0 26px;
	color: #14100b;
	font-size: 44px;
	font-weight: 500;
	line-height: 1.2;
}

.dfl-about__heading em {
	color: #b08d45;
	font-style: italic;
}

.dfl-about__description {
	margin: 0 0 44px;
	color: #6b6358;
	font-size: 15px;
	line-height: 1.85;
}

.dfl-about__description p {
	margin: 0;
}

.dfl-about__description p + p {
	margin-top: 1em;
}

/* ------------------------------- Features -------------------------------- */

.dfl-about__features {
	display: grid;
	grid-template-columns: repeat(var(--dfl-feat-cols, 3), minmax(0, 1fr));
	gap: var(--dfl-feat-gap, 24px);
	margin-bottom: 44px;
}

.dfl-about__feature {
	display: flex;
	flex-direction: column;
	align-items: var(--dfl-feat-align, start);
	min-width: 0;
	color: inherit;
	text-align: var(--dfl-feat-align, start);
	text-decoration: none;
}

a.dfl-about__feature:hover {
	text-decoration: none;
}

.dfl-about__feature-icon {
	display: flex;
	margin-bottom: 14px;
	color: #b08d45;
	font-size: 30px;
	line-height: 1;
}

.dfl-about__feature-icon i,
.dfl-about__feature-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	font-size: inherit;
	fill: currentColor;
}

.dfl-about__feature-label {
	color: #4a4238;
	font-size: 13px;
	line-height: 1.5;
}

/* -------------------------------- Button --------------------------------- */

.dfl-about__button-wrap {
	display: flex;
	/* Falls back to the section text alignment until the Button > Alignment
	   control is set, so existing pages keep their current placement. */
	justify-content: var(--dfl-btn-just, var(--dfl-text-align, start));
}

.dfl-about__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 20px 32px;
	border: 1px solid #d8ccb8;
	border-radius: 2px;
	background-color: rgba(0, 0, 0, 0);
	color: #14100b;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease;
}

.dfl-about__button:hover {
	text-decoration: none;
}

.dfl-about__button-icon {
	display: flex;
}

.dfl-about__button-icon i,
.dfl-about__button-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	font-size: 1.25em;
	fill: currentColor;
}

.dfl-about__button:focus-visible,
.dfl-about__feature:focus-visible {
	outline: 2px solid #b08d45;
	outline-offset: 3px;
}

/* ------------------------------- Stacking -------------------------------- */

@media (max-width: 1024px) {
	.dfl-about--stack-tablet {
		flex-direction: column;
	}

	.dfl-about--stack-tablet.dfl-about--stack-media-last {
		flex-direction: column-reverse;
	}

	.dfl-about--stack-tablet .dfl-about__image {
		flex-basis: auto;
		max-width: 100%;
		width: 100%;
	}

	.dfl-about--stack-tablet .dfl-about__content {
		padding: 48px 40px;
	}
}

@media (max-width: 767px) {
	.dfl-about--stack-mobile {
		flex-direction: column;
	}

	.dfl-about--stack-mobile.dfl-about--stack-media-last {
		flex-direction: column-reverse;
	}

	.dfl-about--stack-mobile .dfl-about__image {
		flex-basis: auto;
		max-width: 100%;
		width: 100%;
	}

	.dfl-about__content {
		padding: 40px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dfl-about__button {
		transition-duration: 1ms;
	}
}
