/* Balerfornia Site Footer — replaces the CozyStay demo footer.
   Models the reference's `.footer`.

   SPECIFICITY NOTE — do not collapse these selectors. This footer lives inside
   a CozyStay custom_block that the theme styles; scope everything under
   `.bff-foot` (0,2,0) at minimum. Links need 0,4,0 to beat the theme's
   `.elementor-element a:not([class*="button"]):not(:hover) { color: inherit }`
   — on a dark footer that rule would drag every link to the wrong colour. */

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

.bff-foot {
	/* Light cream finish. Text is forest; the logo is the forest-wordmark
	   variant (id 22) so it reads on cream. Vars are overridden inline by the
	   widget's colour controls — these are just the fallback. */
	--bff-bg: #F6F1E7;
	--bff-text: #053932;
	--bff-accent: #7DA086;
	--bff-font-display: 'Playfair Display', Georgia, serif;
	--bff-font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: var(--bff-bg);
	color: var(--bff-text);
	padding: clamp(64px, 9vh, 104px) 0 clamp(32px, 4vh, 44px);
}

.bff-foot .bff-foot__inner {
	max-width: 1800px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 56px);
}

/* ---- Top row ------------------------------------------------------------- */

.bff-foot .bff-foot__top {
	display: grid;
	grid-template-columns: 1.3fr 2fr;
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
}

.bff-foot .bff-foot__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	max-width: 460px;
}

.bff-foot .bff-foot__logo {
	height: clamp(64px, 8vw, 92px);
	width: auto;
	max-width: 320px;
	display: block;
}

/* The "end strong" moment: the tagline reads as a Playfair statement, not
   small print. Big serif in forest on cream, tight leading. */
.bff-foot .bff-foot__tagline {
	margin: 0;
	font-family: var(--bff-font-display);
	font-weight: 400;
	font-size: clamp(1.35rem, 2.3vw, 2rem);
	line-height: 1.22;
	letter-spacing: -0.01em;
	color: color-mix(in srgb, var(--bff-text) 92%, transparent);
}

.bff-foot .bff-foot__address {
	margin: 0;
	font-family: var(--bff-font-body);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--bff-text) 64%, transparent);
}

/* ---- Link columns -------------------------------------------------------- */

.bff-foot .bff-foot__cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px 40px;
}

.bff-foot .bff-foot__col {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Forest, not sage — sage on cream is too faint to read at this size. A short
   sage tick above each heading keeps the accent colour in play. */
.bff-foot .bff-foot__col-head {
	position: relative;
	padding-top: 18px;
	font-family: var(--bff-font-body);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.33;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--bff-text);
}

.bff-foot .bff-foot__col-head::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 28px;
	height: 2px;
	background: var(--bff-accent);
}

.bff-foot .bff-foot__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* 0,4,0 — see the note at the top; must beat the theme's anchor-inherit rule. */
.bff-foot .bff-foot__inner .bff-foot__col .bff-foot__link,
.bff-foot .bff-foot__inner .bff-foot__col .bff-foot__link:not(:hover) {
	font-family: var(--bff-font-body);
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: color-mix(in srgb, var(--bff-text) 82%, transparent);
	text-decoration: none;
	transition: color 180ms ease;
}

/* Hover borrows the site's sage wavy-underline motif rather than recolouring
   the text (sage text on cream is too low-contrast). */
.bff-foot .bff-foot__inner .bff-foot__col a.bff-foot__link:hover {
	color: var(--bff-text);
	text-decoration: underline;
	text-decoration-style: wavy;
	text-decoration-color: var(--bff-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* ---- Rule + bottom bar --------------------------------------------------- */

.bff-foot .bff-foot__rule {
	height: 1px;
	margin: clamp(44px, 6vh, 68px) 0 24px;
	background: color-mix(in srgb, var(--bff-text) 16%, transparent);
}

.bff-foot .bff-foot__bottom {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.bff-foot .bff-foot__fine {
	font-family: var(--bff-font-body);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--bff-text) 60%, transparent);
}

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

@media (max-width: 900px) {
	.bff-foot .bff-foot__top {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.bff-foot .bff-foot__brand {
		max-width: none;
	}
}

@media (max-width: 560px) {
	.bff-foot .bff-foot__cols {
		grid-template-columns: 1fr 1fr;
	}
	.bff-foot .bff-foot__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}
