/* BP Field Results widget styles
 *
 * Rounded cream section with a centered section heading and
 * four equal result cards in one row. Each card is a full-bleed
 * image with a dark soft overlay and a bottom-start content
 * block (uppercase title + two short bullets). An optional
 * decorative botanical image floats on the inline-end edge.
 *
 * All rules stay under .bp-field-results. Logical properties
 * keep LTR/RTL aligned without an override file. Layout uses
 * CSS grid so the responsive breakpoints stay clean.
 */

.bp-field-results {
	--bp-fr-bg:           #FBF6EC;
	--bp-fr-heading:      #374F37;
	--bp-fr-card-radius:  14px;
	--bp-fr-card-gap:     12px;
	--bp-fr-card-min-h:   260px;
	--bp-fr-overlay:      #1F2A1F;
	--bp-fr-overlay-op:   0.35;
	--bp-fr-title:        #FFFFFF;
	--bp-fr-bullet:       #FFFFFF;
	--bp-fr-font:         var(--bp-font-body, 'Manrope', system-ui, sans-serif);
	--bp-fr-display:      var(--bp-font-display, 'DM Serif Display', Georgia, serif);
	--bp-fr-pad:          36px;

	position: relative;
	overflow: hidden;
	font-family: var(--bp-fr-font);
	color: var(--bp-fr-heading);
	isolation: isolate;

	/* Transparent section so the page background shows through;
	 * no border, no radius, no shadow. Only vertical padding is
	 * kept to preserve breathing room above/below the cards. */
	padding-block: var(--bp-fr-pad);
	padding-inline: 0;

	/* Flex column so head, divider and grid stack vertically
	 * with predictable spacing. */
	display: flex;
	flex-direction: column;
}

/* ---- Decorative botanical layer (inline-end side) ----
 * Wrapper is always rendered so the Elementor editor keeps the
 * feature visible even before an image is selected. The image
 * inside uses object-fit: contain so leaf artwork never crops. */
.bp-field-results__decoration {
	position: absolute;
	inset-block-start: 0;
	inset-block-end: 0;
	inset-inline-end: -40px;
	inline-size: clamp(180px, 26vw, 300px);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	user-select: none;
	z-index: 0;
	max-inline-size: none;
}

.bp-field-results__decoration img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	max-block-size: 100%;
	object-fit: contain;
}

/* ---- Section heading ----
 * Centered display heading. The eyebrow + title share the same
 * visual scale as the "BP How To Use" and "BP Advice & News"
 * headings so all section titles on the page stay consistent.
 * No background-color is applied because the section is now
 * transparent and there is no top border to cross.
 *
 * The head wrapper is forced to inline-size: 100% + margin-
 * inline: auto so the eyebrow, title and decorative divider all
 * share the same center axis as the full-width card grid below.
 * No flex / grid align-self is set on the title, so it stretches
 * to the head's full width and text-align: center takes care of
 * the visual centering. */
.bp-field-results__head {
	position: relative;
	z-index: 1;
	inline-size: 100%;
	margin-inline: auto;
	text-align: center;
	margin-block-end: 10px;
}

.bp-field-results__eyebrow {
	margin: 0 0 10px;
	font-family: var(--bp-fr-font);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bp-fr-heading);
}

.bp-field-results__heading {
	position: relative;
	z-index: 1;
	margin: 0;
	text-align: center;
	font-family: var(--bp-fr-display);
	font-weight: 400;
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.15;
	letter-spacing: 0.01em;
	color: var(--bp-fr-heading);
	text-transform: uppercase;
}

/* ---- Decorative divider ----
 * Short horizontal line — small centered diamond — short
 * horizontal line, drawn in CSS to sit directly under the
 * section title. Uses the same olive/gold accent as the rest
 * of the site so it reads as a typography flourish, not a
 * separate element. Tight top gap (10px) keeps it visually
 * attached to the title; modest bottom gap (22px) separates
 * it from the cards. */
.bp-field-results__divider {
	position: relative;
	z-index: 1;
	align-self: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-block-start: 10px;
	margin-block-end: 22px;
}

.bp-field-results__divider-line {
	display: block;
	inline-size: 40px;
	block-size: 1px;
	background-color: #B8B25A;
}

.bp-field-results__divider-diamond {
	display: block;
	inline-size: 6px;
	block-size: 6px;
	background-color: #B8B25A;
	transform: rotate(45deg);
}

/* ---- Card grid ---- */
.bp-field-results__grid {
	position: relative;
	z-index: 1;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--bp-fr-card-gap);
}

/* ---- Single card ---- */
.bp-field-results__card-wrap {
	display: block;
	min-inline-size: 0;
}

.bp-field-results__card {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--bp-fr-card-radius);
	min-block-size: var(--bp-fr-card-min-h);
	/* Card background-color acts as a fallback when no image
	 * is set in Elementor. The image itself is now rendered as
	 * a CSS background-image on this element so it is
	 * guaranteed to cover the entire card with no empty space. */
	background-color: #2a3528;
	background-image: var(--bp-fr-card-bg, none);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	color: var(--bp-fr-title);
	text-decoration: none;
	isolation: isolate;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.bp-field-results__card:hover,
a.bp-field-results__card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(31, 42, 31, 0.18);
	outline: none;
}

/* The image is now a CSS background-image on the card itself
 * (set inline via the widget render) so it is guaranteed to
 * cover the full card. The <img> element is no longer used. */
.bp-field-results__image {
	display: none;
}

/* Bottom-weighted gradient overlay: transparent at the top so the
 * field photograph stays vivid, darkening progressively toward the
 * bottom and reaching its strongest value right behind the title
 * and bullet text. Single dark-green color (10, 30, 16) keeps the
 * card cohesive without flattening the whole image with a uniform
 * tint. */
.bp-field-results__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(10, 30, 16, 0) 0%,
		rgba(10, 30, 16, 0) 30%,
		rgba(10, 30, 16, 0.30) 55%,
		rgba(10, 30, 16, 0.88) 100%
	);
	z-index: 1;
	pointer-events: none;
}

.bp-field-results__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	block-size: 100%;
	min-block-size: var(--bp-fr-card-min-h);
	padding: 18px 20px 22px;
	text-align: start;
}

.bp-field-results__card-title {
	display: block;
	font-family: var(--bp-fr-font);
	font-weight: 800;
	font-size: clamp(15px, 1.4vw, 18px);
	line-height: 1.2;
	letter-spacing: 0.05em;
	color: #FFFFFF;
	text-transform: uppercase;
	/* Three-layer shadow so the title reads cleanly on any photo:
	 * tight near-black drop, mid black halo, wide soft black glow
	 * to keep contrast over lighter sky / leaf backgrounds. */
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.8), 0 0 28px rgba(0, 0, 0, 0.55);
}

.bp-field-results__bullets {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
}

.bp-field-results__bullet {
	display: block;
	font-family: var(--bp-fr-font);
	font-weight: 500;
	font-size: clamp(12px, 1.05vw, 14px);
	line-height: 1.35;
	color: #FFFFFF;
	/* Same three-layer shadow strategy as the title, slightly
	 * tighter so the smaller text stays crisp at 12–14px. */
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.8), 0 0 22px rgba(0, 0, 0, 0.5);
}

/* ---- Tablet: 2 x 2 grid ---- */
@media (max-width: 960px) {
	.bp-field-results {
		--bp-fr-pad: 28px;
	}

	.bp-field-results__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bp-field-results__decoration {
		opacity: 0.7;
		inline-size: clamp(140px, 30vw, 220px);
		inset-inline-end: -20px;
	}
}

/* ---- Mobile: single column ---- */
@media (max-width: 560px) {
	.bp-field-results {
		--bp-fr-pad: 20px;
		--bp-fr-card-min-h: 220px;
	}

	.bp-field-results__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.bp-field-results__decoration {
		display: none;
	}

	.bp-field-results__heading {
		font-size: 22px;
		letter-spacing: 0.02em;
	}
}
