/* Documentary gallery — 4-up desktop/tablet, mobile-optimized, 100+ ready */

.bf-doc-gallery {
	margin: 1.25rem 0 2.5rem;
}

.bf-doc-gallery__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
	margin-bottom: 1rem;
	position: sticky;
	top: 0;
	z-index: 4;
	padding: 0.75rem 0;
	background: linear-gradient(180deg, #f7f4ec 65%, rgba(247, 244, 236, 0));
}

.bf-doc-gallery__search {
	flex: 1 1 14rem;
}

.bf-doc-gallery__filters input[type="search"] {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid #b7c0b5;
	background: #fff;
	font: inherit;
}

.bf-doc-gallery__clear {
	color: #1f3d2b;
	font-size: 0.95rem;
}

.bf-doc-gallery__count {
	margin: 0 0 1rem;
	color: #5c6b5a;
	font-size: 0.95rem;
}

.bf-doc-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.35rem 1.1rem;
}

.bf-doc-gallery--compact .bf-doc-gallery__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bf-doc-card {
	margin: 0;
	background: #fffdf8;
	border: 1px solid #d5ddd3;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
}

.bf-doc-card__play {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	cursor: pointer;
	background: #1c241c;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.bf-doc-card__play:focus-visible {
	outline: 2px solid #1f3d2b;
	outline-offset: 2px;
}

.bf-doc-card__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	aspect-ratio: 16 / 9;
}

.bf-doc-card__thumb--empty {
	background: linear-gradient(155deg, #2a4032, #1c241c);
}

.bf-doc-card__thumb-link {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #1c241c;
}

.bf-doc-card__play-icon {
	position: absolute;
	inset: 50% auto auto 50%;
	width: 3rem;
	height: 3rem;
	margin: -1.5rem 0 0 -1.5rem;
	border-radius: 999px;
	background: rgba(28, 36, 28, 0.72);
	box-shadow: 0 0 0 2px rgba(247, 244, 236, 0.85);
}

.bf-doc-card__play-icon::before {
	content: "";
	position: absolute;
	left: 1.15rem;
	top: 0.9rem;
	border-style: solid;
	border-width: 0.6rem 0 0.6rem 1rem;
	border-color: transparent transparent transparent #f7f4ec;
}

.bf-doc-card__play:hover .bf-doc-card__play-icon {
	background: #1f3d2b;
}

.bf-doc-card__embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #1c241c;
}

.bf-doc-card__embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.bf-doc-card__body {
	padding: 0.85rem 0.9rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1;
}

.bf-doc-card__cat {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0;
	color: #5c6b5a;
}

.bf-doc-card__title {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 1.05rem;
	line-height: 1.3;
	margin: 0;
}

.bf-doc-gallery__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.bf-doc-gallery .bf-category-nav a {
	color: #1f3d2b;
	text-decoration: none;
	border: 1px solid #c9d2c7;
	padding: 0.35rem 0.75rem;
	background: #fffdf8;
	font-size: 0.9rem;
}

.bf-doc-gallery .bf-category-nav a:hover,
.bf-doc-gallery .bf-category-nav a.is-active {
	border-color: #1f3d2b;
	background: #eef3ee;
}

.bf-doc-card__title a {
	color: inherit;
	text-decoration: none;
}

.bf-doc-card__title a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bf-doc-card__excerpt {
	margin: 0;
	color: #4a5549;
	font-size: 0.88rem;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bf-doc-card__related {
	margin: 0.55rem 0 0;
	padding-top: 0.45rem;
	border-top: 1px solid rgba(15, 61, 46, 0.1);
}

.bf-doc-card__related-label {
	margin: 0 0 0.15rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #5c6b5a;
}

.bf-doc-card__related-link {
	margin: 0;
	font-size: 0.9rem;
}

.bf-doc-card__related-link a {
	color: #1f3d2b;
	font-weight: 600;
	text-decoration: none;
}

.bf-doc-card__related-link a:hover {
	text-decoration: underline;
}

.bf-doc-gallery__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	justify-content: center;
	margin-top: 2rem;
}

.bf-doc-gallery__pagination .page-numbers {
	padding: 0.4rem 0.75rem;
	border: 1px solid #c9d2c7;
	background: #fffdf8;
	text-decoration: none;
	color: #1c241c;
}

.bf-doc-gallery__pagination .page-numbers.current {
	background: #1f3d2b;
	border-color: #1f3d2b;
	color: #f7f4ec;
}

/* Tablet: keep 4 columns (user requirement) */
@media (max-width: 1100px) {
	.bf-doc-gallery__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1rem 0.75rem;
	}

	.bf-doc-gallery--compact .bf-doc-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mobile */
@media (max-width: 720px) {
	.bf-doc-gallery__filters {
		position: static;
	}

	.bf-doc-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.9rem 0.65rem;
	}

	.bf-doc-card__title {
		font-size: 0.98rem;
	}

	.bf-doc-card__excerpt {
		display: none;
	}

	.bf-doc-card__play-icon {
		width: 2.5rem;
		height: 2.5rem;
		margin: -1.25rem 0 0 -1.25rem;
	}

	.bf-doc-card__play-icon::before {
		left: 0.95rem;
		top: 0.72rem;
		border-width: 0.5rem 0 0.5rem 0.85rem;
	}
}

@media (max-width: 420px) {
	.bf-doc-gallery__grid,
	.bf-doc-gallery--compact .bf-doc-gallery__grid {
		grid-template-columns: 1fr;
	}

	.bf-doc-card__excerpt {
		display: -webkit-box;
	}
}

/* FAQ accordion — questions only until expanded */
.bf-faq--accordion {
	display: grid;
	gap: 0.65rem;
}

.bf-faq__item {
	border: 1px solid #d5ddd3;
	background: #fffdf8;
	margin: 0;
	padding: 0;
}

.bf-faq__question {
	list-style: none;
	cursor: pointer;
	padding: 0.9rem 2.5rem 0.9rem 1rem;
	font-weight: 600;
	font-size: 1.02rem;
	line-height: 1.35;
	color: #1c241c;
	position: relative;
}

.bf-faq__question::-webkit-details-marker {
	display: none;
}

.bf-faq__question::after {
	content: "+";
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.25rem;
	font-weight: 400;
	color: #1f3d2b;
	line-height: 1;
}

.bf-faq__item[open] > .bf-faq__question::after {
	content: "–";
}

.bf-faq__question:hover {
	background: #f3f6f2;
}

.bf-faq__question:focus-visible {
	outline: 2px solid #1f3d2b;
	outline-offset: 2px;
}

.bf-faq__answer {
	padding: 0 1rem 1rem;
	color: #3d463c;
	line-height: 1.55;
	border-top: 1px solid #e4ebe4;
}

.bf-faq__answer > *:first-child {
	margin-top: 0.85rem;
}

.bf-faq__answer > *:last-child {
	margin-bottom: 0;
}

.bf-contact-layout__faq .bf-faq--accordion > h2 {
	margin: 0 0 0.75rem;
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 1.35rem;
}

/* Contact: form + FAQ side-by-side on desktop; FAQ hidden on mobile */
.bf-contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 2.5rem;
	align-items: start;
	margin: 0.5rem 0 2rem;
}

.bf-contact-layout__faq {
	border-left: 1px solid #d5ddd3;
	padding-left: 2rem;
}

.bf-contact-layout__faq-inner {
	max-height: min(70vh, 40rem);
	overflow: auto;
	padding-right: 0.35rem;
}

.bf-contact-layout__faq-inner h2 {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 1.35rem;
	margin-top: 0;
}

.bf-contact-layout__faq-inner h3 {
	font-size: 1.05rem;
	margin: 1.25rem 0 0.4rem;
}

.bf-contact-layout__faq-mobile {
	display: none;
	margin-top: 1.25rem;
}

@media (max-width: 900px) {
	.bf-contact-layout {
		grid-template-columns: 1fr;
	}

	.bf-contact-layout__faq {
		display: none;
	}

	.bf-contact-layout__faq-mobile {
		display: block;
	}
}

.bf-service-detail {
	max-width: none;
}

.bf-service-detail header,
.bf-service-detail section,
.bf-service-detail > p {
	max-width: 42rem;
}

.bf-service-detail__media {
	margin: 0 0 1.5rem;
	max-width: none;
}

.bf-service-detail__img,
.bf-service-detail__media img {
	width: 100%;
	max-height: 22rem;
	object-fit: cover;
	display: block;
	background: #1c241c;
}

.bf-service-detail ol,
.bf-service-detail ul {
	line-height: 1.7;
}

.bf-contact-form.bf-app-form {
	margin-top: 1rem;
}

.bf-calc-blocked {
	background: #fdecea;
	border-left: 3px solid #8a1f11;
	padding: 0.75rem 1rem;
}

/* Business-page embeds from Documentary / content URLs */
.bf-doc-embeds {
	display: grid;
	gap: 1.25rem;
	margin: 1rem 0 1.5rem;
}

.bf-doc-embed__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #1c241c;
	overflow: hidden;
}

.bf-doc-embed__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* —— Single documentary —— */
.bf-doc-single__inner {
	max-width: 48rem;
	margin: 0 auto 3rem;
	padding: 0 1rem 2rem;
}

.bf-doc-single__header {
	margin: 1rem 0 1.25rem;
}

.bf-doc-single__title {
	margin: 0.35rem 0 0.5rem;
	font-size: clamp(1.6rem, 2.5vw, 2.1rem);
	line-height: 1.2;
	color: #0f3d2e;
}

.bf-doc-single__related {
	margin: 0.85rem 0 0;
	padding: 0.75rem 0 0;
	border-top: 1px solid rgba(15, 61, 46, 0.12);
}

.bf-doc-single__related-label {
	margin: 0 0 0.25rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5c6b5a;
}

.bf-doc-single__related-link {
	margin: 0;
	font-size: 1rem;
}

.bf-doc-single__related-link a {
	color: #0f3d2e;
	font-weight: 600;
	text-decoration: none;
}

.bf-doc-single__related-link a:hover {
	text-decoration: underline;
}

.bf-doc-single__player {
	margin: 0 0 1.5rem;
}

.bf-doc-single__buy {
	margin: 0 0 1.75rem;
	padding: 1rem 1.1rem;
	border: 1px solid rgba(15, 61, 46, 0.15);
	border-radius: 4px;
	background: #fafbfa;
}

.bf-doc-single__buy .bf-buy-box__title {
	margin-top: 0;
	font-size: 1.05rem;
}

.bf-doc-single__buy .bf-buy-box__submit {
	margin-top: 0.75rem;
}

.bf-doc-single__player .bf-hero-video__frame {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background: #0b1f18;
	overflow: hidden;
}

.bf-doc-single__player .bf-hero-video__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.bf-doc-single__content {
	margin: 0 0 1.75rem;
	line-height: 1.65;
	color: #2a3a34;
}

.bf-doc-single__back {
	margin: 1.5rem 0 0;
}
