/* Balerfornia Experience Grid — three-up cards under a centred headline.
   Modeled on the Lavender Shore reference's `.explore-home-a`.

   SPECIFICITY NOTE — same trap as every other widget here, do not collapse
   these selectors. CozyStay's main.min.css styles bare tags via
   `.elementor-section h2/h3` (0,1,1) and links via
   `.elementor-element a:not([class*="button"]):not(:hover) { color: inherit }`
   (0,3,1). Under 0,2,0 loses; anchors need 0,4,0. */

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

.bfx-exp {
	--bfx-bg: #C8D1BC;
	--bfx-text: #053932;
	--bfx-accent: #7DA086;
	--bfx-font-display: 'Playfair Display', Georgia, serif;
	--bfx-font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: var(--bfx-bg);
	padding: clamp(72px, 11vh, 160px) 0;
	/* The reference rounds the top corners so the band lifts off the section
	   above it. */
	border-radius: 24px 24px 0 0;
}

.bfx-exp .bfx-exp__inner {
	max-width: 1800px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 56px);
}

/* ---- Headline ------------------------------------------------------------ */

.bfx-exp .bfx-exp__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	max-width: 676px;
	margin: 0 auto clamp(40px, 6vw, 80px);
	text-align: center;
}

.bfx-exp .bfx-exp__eyebrow {
	font-family: var(--bfx-font-body);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.33;
	letter-spacing: 3px;
	text-transform: uppercase;
	/* In hero mode the head sits on a dark band and needs its own accent;
	   falls back to the section accent everywhere else (homepage unchanged). */
	color: var(--bfx-head-accent, var(--bfx-accent));
}

/* 0,2,0 — must outrank CozyStay's `.elementor-section h2` / `.elementor h2`. */
.bfx-exp .bfx-exp__headline {
	margin: 0;
	font-family: var(--bfx-font-display);
	font-weight: 400;
	font-size: clamp(2.25rem, 5.5vw, 5.5rem);
	line-height: 0.92;
	letter-spacing: -0.03em;
	color: var(--bfx-head-text, var(--bfx-text));
	text-align: center;
	text-transform: none;
}

.bfx-exp .bfx-exp__headline em {
	font-style: italic;
}

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

.bfx-exp .bfx-exp__subtitle {
	margin: 0;
	font-family: var(--bfx-font-body);
	font-size: 1.25rem;
	line-height: 1.4;
	color: var(--bfx-head-text, var(--bfx-text));
	opacity: 0.8;
}

/* ---- Hero mode ----------------------------------------------------------
   For a top-of-page instance. The site header is an absolute, transparent
   ~144px overlay with WHITE nav + a cream logo — invisible over a light band.
   Hero mode gives the headline its own full-bleed dark band with enough top
   padding to clear the header, so the header reads over dark and nothing
   collides. The cards then sit on the section Background below. */

.bfx-exp.bfx-exp--hero {
	padding: 0;
	background: transparent;
	border-radius: 0;
}

.bfx-exp--hero .bfx-exp__hero {
	background: var(--bfx-hero-bg, #053932);
	/* Top padding clears the 144px overlay header and lets the headline breathe. */
	padding: clamp(172px, 22vh, 264px) 0 clamp(64px, 9vh, 120px);
}

.bfx-exp--hero .bfx-exp__hero .bfx-exp__head {
	/* The head is alone in this band — no grid follows it here. */
	margin-bottom: 0;
}

.bfx-exp--hero .bfx-exp__body {
	background: var(--bfx-bg);
	padding: clamp(56px, 8vh, 104px) 0 clamp(72px, 11vh, 160px);
	/* Lift the light card band up over the dark hero's square bottom edge —
	   the signature rounded seam used between every Balerfornia band. */
	border-radius: 24px 24px 0 0;
	margin-top: -24px;
	position: relative;
}

/* ---- Grid ---------------------------------------------------------------- */

.bfx-exp .bfx-exp__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bfx-exp .bfx-exp__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bfx-exp .bfx-exp__item::before,
.bfx-exp .bfx-exp__item::marker {
	content: none;
}

.bfx-exp .bfx-exp__card {
	display: flex;
	flex-direction: column;
	gap: 32px;
	height: 100%;
	padding: 16px 16px 32px;
	background: #fff;
	border-radius: 16px;
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.bfx-exp__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(5, 57, 50, 0.1);
}

.bfx-exp .bfx-exp__media {
	position: relative;
	width: 100%;
	aspect-ratio: 475 / 416;
	overflow: hidden;
	border-radius: 16px;
	background: rgba(5, 57, 50, 0.06);
}

.bfx-exp .bfx-exp__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bfx-exp .bfx-exp__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(5, 57, 50, 0.28);
	opacity: 0;
	transition: opacity 0.3s ease;
}

a.bfx-exp__card:hover .bfx-exp__overlay,
a.bfx-exp__card:focus-visible .bfx-exp__overlay {
	opacity: 1;
}

.bfx-exp .bfx-exp__pill {
	padding: 8px 16px;
	border-radius: 32px;
	background: #fff;
	color: var(--bfx-text);
	font-family: var(--bfx-font-body);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

/* ---- Card text ----------------------------------------------------------- */

.bfx-exp .bfx-exp__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	flex: 1;
}

.bfx-exp .bfx-exp__top {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* 0,2,0 — beats `.elementor-section h3`. Deliberately SANS at weight 500:
   the reference reserves the serif for the section headline only. */
.bfx-exp .bfx-exp__title {
	margin: 0;
	font-family: var(--bfx-font-body);
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.16;
	letter-spacing: -0.04em;
	color: var(--bfx-text);
	text-transform: none;
}

.bfx-exp .bfx-exp__desc {
	margin: 0;
	font-family: var(--bfx-font-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.01em;
	color: var(--bfx-text);
	opacity: 0.78;
}

.bfx-exp .bfx-exp__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	/* Pinned to the bottom so tag rows line up across cards of unequal copy. */
	margin-top: auto;
}

.bfx-exp .bfx-exp__tag {
	margin: 0;
	padding: 8px 12px;
	list-style: none;
	background: #faf8f3;
	border: 1px solid #e0ddd0;
	border-radius: 24px;
	font-family: var(--bfx-font-body);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--bfx-text);
	transition: background-color 0.25s ease;
}

.bfx-exp .bfx-exp__tag:hover {
	background: #f0ebe1;
}

.bfx-exp .bfx-exp__tag::before,
.bfx-exp .bfx-exp__tag::marker {
	content: none;
}

/* ---- Footer button ------------------------------------------------------- */

.bfx-exp .bfx-exp__foot {
	display: flex;
	justify-content: center;
	margin-top: clamp(32px, 4vw, 56px);
}

.bfx-exp .bfx-exp__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border-radius: 32px;
	background: #CD9A85;
	font-family: var(--bfx-font-body);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

/* 0,4,0 — beats CozyStay's `.elementor-element a:not([class*="button"]):not(:hover)`
   which would force `color: inherit` on both anchors below. */
.bfx-exp .bfx-exp__foot .bfx-exp__button:not(:hover) {
	color: #fff;
}

.bfx-exp .bfx-exp__inner a.bfx-exp__card:not(:hover) {
	color: var(--bfx-text);
}

.bfx-exp .bfx-exp__button:hover {
	background: #B77E62;
	color: #fff;
	transform: scale(1.02);
}

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

/* Touch devices have no hover, so the CTA would never appear — show it. */
@media (hover: none) {
	.bfx-exp .bfx-exp__overlay {
		opacity: 1;
		background: linear-gradient(to top, rgba(5, 57, 50, 0.5), rgba(5, 57, 50, 0));
		align-items: flex-end;
		padding-bottom: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bfx-exp .bfx-exp__card,
	.bfx-exp .bfx-exp__overlay {
		transition: none;
	}
	a.bfx-exp__card:hover {
		transform: none;
	}
}

@media (max-width: 1024px) {
	.bfx-exp .bfx-exp__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 12px;
	}
}

@media (max-width: 640px) {
	.bfx-exp .bfx-exp__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}
