/**
 * DFL Page Hero
 *
 * Inner-page banner. Everything the panel controls is driven through custom
 * properties or plain declarations, so the generated widget CSS always wins —
 * nothing in here uses !important.
 */

.dfl-page-hero {
	--dfl-ph-just: start;
	--dfl-ph-valign: center;
	--dfl-ph-items: start;
	--dfl-ph-text-align: start;
	--dfl-ph-container: 1240px;
	--dfl-ph-content-max: 620px;
	--dfl-ph-min-h: 560px;
	--dfl-ph-ratio: 2.7;
	--dfl-ph-bg-color: #f3efe8;
	--dfl-ph-bg-pos: center center;
	--dfl-ph-eyebrow-gap: 18px;
	--dfl-ph-eyebrow-line-w: 46px;
	--dfl-ph-eyebrow-line-h: 1px;
	--dfl-ph-eyebrow-line-color: #c9a24d;
	--dfl-ph-divider-w: 90px;
	--dfl-ph-divider-h: 1px;
	--dfl-ph-divider-color: #c9a24d;
	--dfl-ph-buttons-gap: 16px;

	position: relative;
	display: flex;
	align-items: var(--dfl-ph-valign, center);
	width: 100%;
	min-height: var(--dfl-ph-min-h, 560px);
	overflow: hidden;
	background-color: var(--dfl-ph-bg-color, #f3efe8);
}

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

/* Ratio mode keeps the banner's shape at every width. min-height stays out of
 * the way, but the content can still push the box taller than the ratio. */
.dfl-page-hero--ratio {
	/* auto, not 0 — a ratio box with min-height:auto still grows to fit its
	 * content instead of clipping it against overflow:hidden. */
	min-height: auto;
	aspect-ratio: var(--dfl-ph-ratio, 2.7);
}

/* ------------------------------ Background ------------------------------- */

.dfl-page-hero__bg {
	position: absolute;
	inset: 0;
	background-image: var(--dfl-ph-bg-d, none);
	background-position: var(--dfl-ph-bg-pos, center center);
	background-size: cover;
	background-repeat: no-repeat;
	z-index: 1;
}

.dfl-page-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

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

.dfl-page-hero__container {
	position: relative;
	z-index: 3;
	display: flex;
	justify-content: var(--dfl-ph-just, start);
	width: 100%;
	max-width: var(--dfl-ph-container, 1240px);
	margin-left: auto;
	margin-right: auto;
	padding: 60px 24px;
}

.dfl-page-hero__content {
	display: flex;
	flex-direction: column;
	align-items: var(--dfl-ph-items, start);
	width: 100%;
	max-width: var(--dfl-ph-content-max, 620px);
	min-width: 0;
	text-align: var(--dfl-ph-text-align, start);
}

/* -------------------------------- Eyebrow -------------------------------- */

.dfl-page-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: var(--dfl-ph-eyebrow-gap, 18px);
	max-width: 100%;
	margin: 0 0 22px;
	color: #b08d45;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 3px;
	line-height: 1.4;
	text-transform: uppercase;
}

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

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

/* -------------------------------- Heading -------------------------------- */

.dfl-page-hero__heading {
	max-width: 100%;
	margin: 0;
	color: #14100b;
	font-size: 64px;
	font-weight: 500;
	line-height: 1.12;
}

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

/* -------------------------------- Divider -------------------------------- */

.dfl-page-hero__divider {
	display: block;
	flex: 0 0 auto;
	width: var(--dfl-ph-divider-w, 90px);
	max-width: 100%;
	height: var(--dfl-ph-divider-h, 1px);
	margin: 30px 0 26px;
	background-color: var(--dfl-ph-divider-color, #c9a24d);
}

/* ------------------------------ Description ------------------------------ */

.dfl-page-hero__description {
	max-width: 100%;
	margin: 0;
	color: #3f3930;
	font-size: 17px;
	line-height: 1.7;
}

.dfl-page-hero__description p {
	margin: 0;
}

.dfl-page-hero__description p + p {
	margin-top: 0.8em;
}

/* -------------------------------- Buttons -------------------------------- */

.dfl-page-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: var(--dfl-ph-items, start);
	gap: var(--dfl-ph-buttons-gap, 16px);
	max-width: 100%;
	margin-top: 34px;
}

.dfl-page-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 18px 36px;
	border: 1px solid transparent;
	border-radius: 2px;
	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-page-hero__button:hover,
.dfl-page-hero__button:focus {
	text-decoration: none;
}

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

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

@media (max-width: 1024px) {
	.dfl-page-hero__bg {
		background-image: var(--dfl-ph-bg-t, var(--dfl-ph-bg-d, none));
	}
}

@media (max-width: 767px) {
	.dfl-page-hero__bg {
		background-image: var(--dfl-ph-bg-m, var(--dfl-ph-bg-t, var(--dfl-ph-bg-d, none)));
	}

	.dfl-page-hero--buttons-full-mobile .dfl-page-hero__buttons {
		width: 100%;
	}

	.dfl-page-hero--buttons-full-mobile .dfl-page-hero__button {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dfl-page-hero__button {
		transition-duration: 1ms;
	}
}
