/**
 * Site-wide pre-footer CTA.
 * Default = full-bleed centered. Banner = rounded inset card (home).
 */

.ft-site-close,
.ft-home-close {
	--ft-close-gold: #cbb178;
	--ft-close-gold-hot: #b89a5f;
	--ft-close-ink: #111111;
	position: relative;
	isolation: isolate;
	padding: clamp(4.5rem, 11vw, 7.5rem) 0 clamp(5.5rem, 12vw, 8.5rem);
	text-align: center;
	color: var(--ft-close-ink);
	overflow: hidden;
	background: #fff;
}

/* Default CTA keeps full-bleed media against the section. */
.ft-site-close:not(.ft-site-close--banner) .ft-site-close__frame {
	display: contents;
}

.ft-site-close__media,
.ft-site-close__veil,
.ft-home-close__media,
.ft-home-close__veil {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.ft-site-close__media img,
.ft-home-close__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 42%;
	display: block;
	transform: scale(1.02);
}

.ft-site-close__veil,
.ft-home-close__veil {
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(
			0deg,
			#ffffff 0%,
			rgba(255, 255, 255, 0.96) 14%,
			rgba(255, 255, 255, 0.78) 32%,
			rgba(255, 255, 255, 0.42) 52%,
			rgba(255, 255, 255, 0.12) 72%,
			rgba(255, 255, 255, 0) 100%
		),
		linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.28) 0%,
			rgba(255, 255, 255, 0) 28%
		);
}

.ft-site-close__inner,
.ft-home-close__inner {
	position: relative;
	z-index: 2;
	width: min(1120px, calc(100% - 2rem));
	max-width: 46rem;
	margin: 0 auto;
}

.ft-site-close__brand,
.ft-home-close .ft-home-brand {
	margin: 0 0 0.65rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ft-close-gold-hot);
}

.ft-site-close h2,
.ft-home-close h2 {
	margin: 0 0 0.95rem;
	font-family: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	font-weight: 650;
	letter-spacing: -0.03em;
	line-height: 1.12;
	color: var(--ft-close-ink);
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.ft-site-close p,
.ft-home-close p {
	margin: 0 0 0.95rem;
	color: #3f3c38;
	font-size: clamp(0.98rem, 1.5vw, 1.05rem);
	line-height: 1.7;
}

.ft-site-close p:last-of-type,
.ft-home-close p:last-of-type {
	margin-bottom: 1.6rem;
}

.ft-site-close__actions,
.ft-home-close .ft-home-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

.ft-site-close__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.75rem 1.35rem;
	border-radius: 0.65rem;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ft-site-close__btn--gold {
	background: var(--ft-close-gold);
	color: var(--ft-close-ink);
	border: 1px solid transparent;
}

.ft-site-close__btn--gold:hover {
	background: var(--ft-close-gold-hot);
	color: #fff;
	transform: translateY(-1px);
}

.ft-site-close__btn--line {
	color: var(--ft-close-ink);
	border: 1.5px solid rgba(17, 17, 17, 0.28);
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(6px);
}

.ft-site-close__btn--line:hover {
	border-color: var(--ft-close-ink);
	background: #fff;
}

/* —— Banner variant (home) —— */
.ft-site-close--banner {
	/* Match side inset (0.5rem) on top/bottom so spacing is even. */
	padding: 0.5rem;
	overflow: visible;
	background:
		radial-gradient(720px 280px at 10% 0%, rgba(203, 177, 120, 0.1), transparent 55%),
		linear-gradient(180deg, #faf8f4 0%, #fff 100%);
	text-align: left;
}

.ft-site-close--banner .ft-site-close__shell {
	position: relative;
	isolation: isolate;
	/* Width inset stays 0.5rem each side; height expanded. */
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	min-height: clamp(28rem, 56vw, 40rem);
	border-radius: clamp(1.35rem, 2.5vw, 1.85rem);
	overflow: hidden;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.65) inset,
		0 22px 50px rgba(47, 44, 40, 0.12);
}

.ft-site-close--banner .ft-site-close__media,
.ft-site-close--banner .ft-site-close__veil {
	position: absolute;
	inset: 0;
}

.ft-site-close--banner .ft-site-close__media img {
	transform: none;
	object-position: 68% center;
}

.ft-site-close--banner .ft-site-close__veil {
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.98) 0%,
		rgba(255, 255, 255, 0.95) 30%,
		rgba(255, 255, 255, 0.78) 48%,
		rgba(255, 255, 255, 0.32) 64%,
		rgba(255, 255, 255, 0) 80%
	);
}

.ft-site-close--banner .ft-site-close__inner {
	/*
	 * Align copy to the site wrap, measured against the banner shell.
	 * Using 100vw here pushed the CTA to the right on ultra-wide monitors
	 * (shell caps at 1600px while viewport keeps growing).
	 */
	--ft-cta-wrap: min(1120px, calc(100% - 2rem));
	width: min(38rem, calc(100% - 2.5rem));
	max-width: min(38rem, 54%);
	margin: 0;
	margin-left: max(1.25rem, calc((100% - var(--ft-cta-wrap)) / 2));
	padding: clamp(1.75rem, 3vw, 3.25rem) 1rem clamp(1.75rem, 3vw, 3.25rem) 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: inherit;
	text-align: left;
	box-sizing: border-box;
}

.ft-site-close--banner h2 {
	margin: 0 0 0.85rem;
	max-width: 18ch;
	font-size: clamp(1.7rem, 2.2vw + 1rem, 2.55rem);
	font-weight: 700;
	letter-spacing: -0.035em;
	color: #2f2c28;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.ft-site-close--banner p {
	margin: 0;
	max-width: 46ch;
	color: #3f3c38;
	font-size: clamp(0.95rem, 0.35vw + 0.9rem, 1.05rem);
	line-height: 1.65;
}

.ft-site-close--banner p:last-of-type {
	margin-bottom: 1.45rem;
}

.ft-site-close--banner .ft-site-close__actions {
	justify-content: flex-start;
}

.ft-site-close__btn--pill {
	gap: 0.75rem;
	min-height: 3.15rem;
	padding: 0.7rem 0.75rem 0.7rem 1.35rem;
	border-radius: 999px;
	background: var(--ft-close-gold);
	color: #fff;
	border: 1px solid transparent;
	font-size: 0.95rem;
	font-weight: 700;
	box-shadow: 0 10px 24px rgba(184, 154, 95, 0.28);
}

.ft-site-close__btn--pill:hover {
	background: var(--ft-close-gold-hot);
	color: #fff;
	transform: translateY(-1px);
}

.ft-site-close__btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: #fff;
	color: var(--ft-close-gold-hot);
	transition: transform 0.2s ease;
}

.ft-site-close__btn--pill:hover .ft-site-close__btn-icon {
	transform: translateX(2px);
}

/* Ultra-wide: keep copy in the veiled left zone of the capped shell. */
@media (min-width: 1600px) {
	.ft-site-close--banner .ft-site-close__shell {
		min-height: clamp(28rem, 38vw, 36rem);
	}

	.ft-site-close--banner .ft-site-close__veil {
		background: linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.98) 0%,
			rgba(255, 255, 255, 0.96) 34%,
			rgba(255, 255, 255, 0.82) 50%,
			rgba(255, 255, 255, 0.35) 64%,
			rgba(255, 255, 255, 0) 78%
		);
	}

	.ft-site-close--banner .ft-site-close__inner {
		max-width: min(38rem, 48%);
	}
}

@media (max-width: 767px) {
	.ft-site-close--banner .ft-site-close__shell {
		min-height: 32rem;
	}

	.ft-site-close--banner .ft-site-close__veil {
		background: linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.22) 0%,
			rgba(255, 255, 255, 0.55) 38%,
			rgba(255, 255, 255, 0.94) 62%,
			rgba(255, 255, 255, 0.98) 100%
		);
	}

	.ft-site-close--banner .ft-site-close__media img {
		object-position: center 30%;
	}

	.ft-site-close--banner .ft-site-close__inner {
		width: auto;
		max-width: calc(100% - 1.5rem);
		margin-left: max(1rem, calc((100% - var(--ft-cta-wrap)) / 2));
		margin-right: 0.75rem;
		justify-content: flex-end;
		padding: 8.5rem 0 1.5rem;
	}

	.ft-site-close--banner h2 {
		max-width: none;
	}

	.ft-site-close--banner p {
		max-width: none;
	}

	.ft-site-close__btn--pill {
		width: 100%;
		justify-content: space-between;
	}
}

@media (max-width: 639px) {
	.ft-site-close__actions,
	.ft-home-close .ft-home-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ft-site-close__btn:not(.ft-site-close__btn--pill),
	.ft-home-close .ft-home-btn {
		width: 100%;
	}
}
