/* Balerfornia Know — the dark band that explains the place.
   Models the reference's `.know-home-a-section`.

   SPECIFICITY NOTE — the usual trap; do not collapse these selectors. CozyStay
   styles bare tags via `.elementor-section h2 / p` (0,1,1), so everything is
   scoped under `.bfk` (0,2,0) at minimum. The optional CTA is an ANCHOR, so it
   needs 0,4,0 to beat
   `.elementor-element a:not([class*="button"]):not(:hover) { color: inherit }`
   (0,3,1) — on a dark band that rule would drag the label to cream-on-cream. */

.elementor-widget-balerfornia-know,
.elementor-widget-balerfornia-know > .elementor-widget-container {
	padding: 0 !important;
	margin: 0 !important;
}

.bfk {
	--bfk-bg: #053932;
	--bfk-text: #F6F1E7;
	--bfk-accent: #7DA086;
	--bfk-ratio: 3 / 2;
	--bfk-scrim: rgba(5, 57, 50, 0.82);
	--bfk-font-display: 'Playfair Display', Georgia, serif;
	--bfk-font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: var(--bfk-bg);
	padding: clamp(72px, 12vh, 160px) 0;
	overflow: clip;
	isolation: isolate;
}

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

/* The reference lays its copy directly on its background video because its
   footage is dark navy. Ours is bright turquoise ocean, so a scrim is not
   optional here — without it, cream text on sunlit water is unreadable. */
.bfk .bfk__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

/* Under the video, so the band is never empty on first paint and so mobile /
   reduced-motion (where the JS strips the video's source) still shows the reef
   rather than a flat slab. */
.bfk .bfk__poster {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.bfk .bfk__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bfk .bfk__video.is-off {
	display: none;
}

.bfk .bfk__scrim {
	position: absolute;
	inset: 0;
	background: var(--bfk-scrim);
	z-index: 1;
	pointer-events: none;
}

.bfk .bfk__inner {
	position: relative;
	z-index: 2;
	max-width: 1800px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 56px);
}

/* Equal halves + 40px gap, matching the reference's `668px 668px`. `1fr 1fr`
   rather than fixed px so it holds at any container width. */
.bfk .bfk__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.bfk.bfk--no-media .bfk__grid {
	grid-template-columns: 1fr;
	max-width: 720px;
}

/* ---- Text column --------------------------------------------------------- */

.bfk .bfk__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 32px;
}

.bfk .bfk__eyebrow {
	font-family: var(--bfk-font-body);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.33;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--bfk-accent);
}

.bfk .bfk__copy {
	display: flex;
	flex-direction: column;
	gap: 24px;
	/* The reference caps its copy at 528px — past that the measure gets tiring. */
	max-width: 528px;
}

.bfk .bfk__headline {
	margin: 0;
	padding: 0;
	font-family: var(--bfk-font-display);
	/* 400 — same restraint as every other headline here. Not 700. */
	font-weight: 400;
	font-size: clamp(1.9rem, 3.4vw, 3.25rem);
	line-height: 1.04;
	letter-spacing: -0.02em;
	color: var(--bfk-text);
	text-align: left;
}

.bfk .bfk__headline em {
	font-style: italic;
}

.bfk .bfk__headline .lvh-underline-wave {
	font-style: normal;
	text-decoration: underline;
	text-decoration-style: wavy;
	text-decoration-color: var(--bfk-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.12em;
}

.bfk .bfk__body {
	margin: 0;
	padding: 0;
	font-family: var(--bfk-font-body);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.62;
	letter-spacing: -0.01em;
	/* Slightly back from the headline so the hierarchy holds on a dark band,
	   but still well above AA against the forest. */
	color: color-mix(in srgb, var(--bfk-text) 84%, transparent);
	text-align: left;
}

/* 0,4,0 — see the note at the top. */
.bfk .bfk__text .bfk__copy + .bfk__cta,
.bfk .bfk__inner .bfk__text .bfk__cta,
.bfk .bfk__inner .bfk__text .bfk__cta:not(:hover) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	border-radius: 999px;
	background: #CD9A85;
	color: #fff;
	font-family: var(--bfk-font-body);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 250ms ease, color 250ms ease, transform 250ms ease;
}

/* On the DARK forest band the old #053932 hover made the button vanish. Lighten
   to teal instead so it stays visible; dark text keeps AA. */
.bfk .bfk__inner .bfk__text .bfk__cta:hover {
	background: #B77E62;
	color: #fff;
	transform: scale(1.02);
}

/* ---- Media --------------------------------------------------------------- */

.bfk .bfk__media {
	margin: 0;
	padding: 0;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: var(--bfk-ratio);
	background: color-mix(in srgb, var(--bfk-text) 8%, transparent);
}

.bfk .bfk__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

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

@media (max-width: 900px) {
	/* Two 1fr columns at phone width would give a ~150px image and a text
	   column too narrow to read. Stack, copy first. */
	.bfk .bfk__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.bfk .bfk__copy {
		max-width: none;
	}
}
