/*
 * Home sections ([bdn_home_workflow], [bdn_home_focus]) — rebuilt from
 * prototype/index.html (.workflow-section, .category-section) in the site
 * palette: green #127A71, yellow underline #FFC400, slate #2B4448, Poppins.
 * Section titles take the theme's H2 size, like the other titles on the page.
 */

.bfi-sec {
	--bfi-sec-ink: #10282C;
	--bfi-sec-slate: #2B4448;
	--bfi-sec-muted: #5C6B6D;
	--bfi-sec-green: #127A71;
	--bfi-sec-green-dark: #0E5F58;
	--bfi-sec-green-50: #EEF8F7;
	--bfi-sec-green-200: #BFE5E1;
	--bfi-sec-cream: #FAF9F7;
	--bfi-sec-line: #E9E5DE;
	--bfi-sec-line-strong: #D9D3C9;
	--bfi-sec-shadow-sm: 0 1px 2px rgba(16, 40, 44, .06), 0 1px 1px rgba(16, 40, 44, .04);
	--bfi-sec-shadow-md: 0 6px 18px rgba(16, 40, 44, .07), 0 2px 4px rgba(16, 40, 44, .04);
	--bfi-sec-ease: cubic-bezier(.2, .7, .2, 1);
	font-family: Poppins, sans-serif;
	color: var(--bfi-sec-ink);
	text-align: left;
}

/* ── Heading: label + title left, intro right ─────────────────────── */
.bfi-sec__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 64px;
}
.bfi-sec .bfi-sec__eyebrow {
	margin: 0 0 20px;
	padding: 0;
	color: var(--bfi-sec-green);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .16em;
	text-transform: uppercase;
}
/* Size, line height and spacing come from the theme's H2, like the other section titles. */
.bfi-sec .bfi-sec__title {
	margin: 0;
	padding: 0;
	color: var(--bfi-sec-ink);
	text-wrap: balance;
}
.bfi-sec__mark {
	position: relative;
	display: inline-block;
	white-space: nowrap;
}
.bfi-sec__mark::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -.12em;
	height: .24em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 276 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9.5C46.1081 3.00787 164.955 -0.376652 274 5.06167' fill='none' stroke='%23FFC400' stroke-width='5.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	pointer-events: none;
}
.bfi-sec .bfi-sec__lead {
	flex: 0 1 400px;
	margin: 0;
	padding: 0;
	color: var(--bfi-sec-muted);
	font-size: 17px;
	line-height: 1.7;
	text-wrap: pretty;
}
.bfi-sec__ui {
	flex-shrink: 0;
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ── Workflow: steps ───────────────────────────────────────────────── */
.bfi-workflow .bfi-sec__head {
	margin-bottom: 64px;
}
.bfi-workflow .bfi-workflow__steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.bfi-workflow .bfi-workflow__step {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
}
.bfi-workflow .bfi-workflow__step::before {
	content: none; /* theme list bullets */
}
.bfi-workflow__icon {
	display: grid;
	place-items: center;
	width: 80px;
	height: 80px;
	margin-bottom: 28px;
	border-radius: 24px;
	background: var(--bfi-wf-tile);
	color: var(--bfi-wf-icon);
}
.bfi-workflow__icon svg,
.bfi-focus__icon svg {
	width: 32px;
	height: 32px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.bfi-workflow__step--purple { --bfi-wf-tile: #F3EAFA; --bfi-wf-icon: #805091; }
.bfi-workflow__step--yellow { --bfi-wf-tile: #FFF4CD; --bfi-wf-icon: #916915; }
.bfi-workflow__step--green  { --bfi-wf-tile: #E3F5F3; --bfi-wf-icon: #127A71; }
.bfi-workflow__step--orange { --bfi-wf-tile: #FBECE0; --bfi-wf-icon: #A95B29; }

.bfi-workflow .bfi-workflow__step-title {
	min-height: 2.6em; /* titles of one or two lines keep the texts aligned */
	margin: 0;
	padding: 0;
	color: var(--bfi-sec-ink);
	font-family: inherit;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -.02em;
}
.bfi-workflow .bfi-workflow__step-text {
	flex: 1;
	margin: 14px 0 0;
	padding: 0;
	color: var(--bfi-sec-muted);
	font-size: 15px;
	line-height: 1.8;
}
.bfi-workflow__examples {
	display: block;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--bfi-sec-line);
	color: var(--bfi-sec-muted);
	font-size: 12px;
	line-height: 1.5;
}

/* ── Focus: cards ──────────────────────────────────────────────────── */
.bfi-focus__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 56px 0 72px;
}
.bfi-focus__card {
	padding: 28px;
	background: var(--bfi-sec-cream);
	border: 1px solid var(--bfi-sec-line);
	border-radius: 14px;
}
.bfi-focus__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 20px;
	border-radius: 12px;
	background: var(--bfi-sec-green);
	color: #fff;
	box-shadow: 0 6px 14px rgba(18, 122, 113, .22);
}
.bfi-focus__icon svg {
	width: 22px;
	height: 22px;
	stroke-width: 1.8;
}
.bfi-focus .bfi-focus__card-title {
	margin: 0 0 10px;
	padding: 0;
	color: var(--bfi-sec-ink);
	font-family: inherit;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -.02em;
}
.bfi-focus .bfi-focus__card-text {
	margin: 0;
	padding: 0;
	color: var(--bfi-sec-muted);
	font-size: 15px;
	line-height: 1.7;
}

/* ── Focus: food categories ────────────────────────────────────────── */
.bfi-focus__cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 20px;
}
.bfi-focus .bfi-focus__cat-title {
	margin: 0;
	padding: 0;
	color: var(--bfi-sec-ink);
	font-family: inherit;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -.02em;
}
.bfi-focus .bfi-focus__all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--bfi-sec-green);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}
.bfi-focus .bfi-focus__all:hover {
	color: var(--bfi-sec-green-dark);
}
.bfi-focus__all .bfi-sec__ui {
	transition: transform .18s var(--bfi-sec-ease);
}
.bfi-focus__all:hover .bfi-sec__ui {
	transform: translate(2px, -1px);
}

.bfi-focus__categories {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}
.bfi-focus .bfi-focus__category {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 84px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--bfi-sec-line);
	border-radius: 14px;
	box-shadow: var(--bfi-sec-shadow-sm);
	color: var(--bfi-sec-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	transition: transform .18s var(--bfi-sec-ease), border-color .18s var(--bfi-sec-ease), box-shadow .18s var(--bfi-sec-ease);
}
.bfi-focus .bfi-focus__category:hover {
	transform: translateY(-2px);
	border-color: var(--bfi-sec-green-200);
	box-shadow: var(--bfi-sec-shadow-md);
	color: var(--bfi-sec-ink);
}
.bfi-focus__category .bfi-sec__ui {
	margin-left: auto;
	width: 20px;
	height: 20px;
	color: var(--bfi-sec-muted);
	transition: color .18s, transform .18s var(--bfi-sec-ease);
}
.bfi-focus__category:hover .bfi-sec__ui {
	color: var(--bfi-sec-green);
	transform: translate(2px, -2px);
}
.bfi-focus__symbol {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 46px;
	height: 46px;
}
.bfi-focus__symbol img {
	display: block;
	width: 46px;
	height: 46px;
	object-fit: contain;
}

/* "Explore more food categories" */
.bfi-focus__more {
	margin-top: 20px;
}
.bfi-focus__more summary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--bfi-sec-line-strong);
	border-radius: 999px;
	background: #fff;
	color: var(--bfi-sec-slate);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	transition: border-color .15s, color .15s;
}
.bfi-focus__more summary::-webkit-details-marker {
	display: none;
}
.bfi-focus__more summary:hover {
	border-color: var(--bfi-sec-green);
	color: var(--bfi-sec-green);
}
.bfi-focus__toggle {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	transition: transform .2s var(--bfi-sec-ease);
}
.bfi-focus__more[open] > summary .bfi-focus__toggle {
	transform: rotate(45deg);
}
.bfi-focus__more-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}
.bfi-focus .bfi-focus__more-links a {
	padding: 8px 14px;
	border: 1px solid var(--bfi-sec-line);
	border-radius: 999px;
	background: #fff;
	color: var(--bfi-sec-slate);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	transition: border-color .15s, color .15s, background .15s;
}
.bfi-focus .bfi-focus__more-links a:hover {
	border-color: var(--bfi-sec-green-200);
	background: var(--bfi-sec-green-50);
	color: var(--bfi-sec-green);
}

/* ── Tablet ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.bfi-sec__head {
		gap: 32px;
	}
	.bfi-sec .bfi-sec__lead {
		flex-basis: 320px;
		font-size: 16px;
	}
	.bfi-workflow .bfi-workflow__steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px;
	}
	.bfi-workflow .bfi-workflow__step-title {
		min-height: 0;
	}
	.bfi-focus__cards {
		gap: 14px;
	}
	.bfi-focus__card {
		padding: 22px;
	}
	.bfi-focus__categories {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.bfi-focus .bfi-focus__category {
		gap: 12px;
		padding: 16px;
	}
}

/* ── Phone ─────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
	.bfi-sec__head {
		display: block;
	}
	.bfi-sec .bfi-sec__eyebrow {
		margin-bottom: 16px;
		font-size: 11px;
	}
	.bfi-sec .bfi-sec__title br {
		display: none;
	}
	/* Long words (e.g. German "Lebensmittelmärkte") break with a hyphen instead of running off screen. */
	.bfi-sec .bfi-sec__title {
		-webkit-hyphens: auto;
		hyphens: auto;
		overflow-wrap: break-word;
	}
	.bfi-sec__mark {
		max-width: 100%;
		white-space: normal;
	}
	.bfi-sec .bfi-sec__lead {
		max-width: 520px;
		margin-top: 20px;
		font-size: 16px;
	}

	.bfi-workflow .bfi-sec__head {
		margin-bottom: 44px;
	}
	.bfi-workflow .bfi-workflow__steps {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.bfi-workflow__icon {
		width: 64px;
		height: 64px;
		margin-bottom: 22px;
		border-radius: 20px;
	}
	.bfi-workflow__icon svg {
		width: 28px;
		height: 28px;
	}
	.bfi-workflow .bfi-workflow__step-title {
		font-size: 21px;
	}
	.bfi-workflow__examples {
		margin-top: 16px;
		padding-top: 14px;
	}

	.bfi-focus__cards {
		grid-template-columns: 1fr;
		margin: 36px 0 48px;
	}
	.bfi-focus__cat-head {
		display: block;
	}
	.bfi-focus .bfi-focus__cat-title {
		margin-bottom: 4px;
		font-size: 20px;
	}
	.bfi-focus__categories {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.bfi-focus .bfi-focus__category {
		min-height: 72px;
	}
}
