/* High Street Feature Card */
.elementor-widget-hsa-feature-card { width: 100%; }

.hsa-fc {
	--fc-bg: #e3e6b4;
	--fc-text: #2b3045;
	--fc-heading: #1b2238;
	--fc-accent: #1b2238;
	--fc-on-accent: #ffffff;
	--fc-rule: rgba(27, 34, 56, .18);
	--fc-min-h: 340px;
	--fc-img-w: 50%;
	--fc-radius: 18px;

	position: relative;
	display: grid;
	grid-template-columns: 1fr var(--fc-img-w);
	grid-template-areas: "body media";
	min-height: var(--fc-min-h);
	background: var(--fc-bg);
	color: var(--fc-text);
	border-radius: var(--fc-radius);
	overflow: hidden;
	isolation: isolate;
	transition: box-shadow .35s ease, transform .35s ease;
}
.hsa-fc--img-left {
	grid-template-columns: var(--fc-img-w) 1fr;
	grid-template-areas: "media body";
}

/* Colourways */
.hsa-fc--sage  { --fc-bg: #e3e6b4; --fc-accent: #1b2238; }
.hsa-fc--sand  { --fc-bg: #eddccb; --fc-accent: #1b2238; }
.hsa-fc--blush { --fc-bg: #f7dfe6; --fc-accent: #d6336f; --fc-rule: rgba(214, 51, 111, .25); }
.hsa-fc--mist  { --fc-bg: #dfe5ea; --fc-accent: #1b2238; }
.hsa-fc--ink   { --fc-bg: #1b2238; --fc-text: #d9dce6; --fc-heading: #ffffff; --fc-accent: #f2a7c3; --fc-on-accent: #1b2238; --fc-rule: rgba(255, 255, 255, .2); }
.hsa-fc--paper { --fc-bg: #ffffff; --fc-accent: #d6336f; box-shadow: inset 0 0 0 1px #e4e4e8; }

/* Media */
.hsa-fc__media {
	grid-area: media;
	position: relative;
	min-height: 240px;
	overflow: hidden;
}
.hsa-fc__media img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: 0 !important;
	transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.hsa-fc__badge {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 1;
	padding: 7px 12px 6px;
	background: #fff;
	color: #1b2238;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	border-radius: 999px;
	line-height: 1;
}

/* Body */
.hsa-fc__body {
	grid-area: body;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: clamp(28px, 4vw, 52px);
}
.hsa-fc__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	color: var(--fc-accent);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	line-height: 1.2;
}
.hsa-fc__eyebrow::before {
	content: "";
	width: 4px;
	height: 16px;
	background: currentColor;
}
.hsa-fc .hsa-fc__title {
	margin: 0 0 14px;
	color: var(--fc-heading);
	font-size: clamp(26px, 2.6vw, 36px);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -.01em;
}
.hsa-fc .hsa-fc__desc {
	margin: 0;
	max-width: 42ch;
	font-size: 15px;
	line-height: 1.6;
}
.hsa-fc .hsa-fc__meta {
	margin: 18px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--fc-rule);
	min-width: 180px;
	font-size: 13px;
	opacity: .8;
}

/* Button */
.hsa-fc .hsa-fc__button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 24px;
	padding: 12px 20px;
	background: var(--fc-accent);
	color: var(--fc-on-accent);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	border-radius: 999px;
	text-decoration: none;
	transition: gap .25s ease, filter .25s ease;
}
.hsa-fc .hsa-fc__button:hover,
.hsa-fc .hsa-fc__button:focus-visible { color: var(--fc-on-accent); gap: 14px; filter: brightness(1.12); }
.hsa-fc .hsa-fc__button:focus-visible { outline: 2px solid var(--fc-accent); outline-offset: 3px; }
.hsa-fc__arrow { width: 14px; height: 14px; flex: none; }

/* Whole-card link */
.hsa-fc--linked a.hsa-fc__button::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}
.hsa-fc--linked:hover { box-shadow: 0 18px 40px -22px rgba(27, 34, 56, .45); transform: translateY(-2px); }
.hsa-fc--paper.hsa-fc--linked:hover { box-shadow: inset 0 0 0 1px #e4e4e8, 0 18px 40px -22px rgba(27, 34, 56, .35); }
.hsa-fc--linked:hover .hsa-fc__media img { transform: scale(1.04); }
.hsa-fc--linked:hover .hsa-fc__button { gap: 14px; }

/* ---------- Layout: Portrait (tall framed image) ---------- */
.hsa-fc--layout-portrait {
	--fc-portrait-w: 300px;
	grid-template-columns: 1fr var(--fc-portrait-w);
	align-items: center;
	padding: clamp(20px, 2.6vw, 32px);
}
.hsa-fc--layout-portrait.hsa-fc--img-left { grid-template-columns: var(--fc-portrait-w) 1fr; }
.hsa-fc--layout-portrait .hsa-fc__media {
	aspect-ratio: 4 / 5;
	min-height: 0;
	overflow: visible;
}
.hsa-fc--layout-portrait .hsa-fc__media::before {
	/* offset hairline frame */
	content: "";
	position: absolute;
	inset: 0;
	transform: translate(-12px, 12px);
	border: 1px solid var(--fc-rule);
	border-radius: max(calc(var(--fc-radius) - 8px), 0px);
}
.hsa-fc--layout-portrait.hsa-fc--img-left .hsa-fc__media::before { transform: translate(12px, 12px); }
.hsa-fc--layout-portrait .hsa-fc__media img {
	border-radius: max(calc(var(--fc-radius) - 8px), 0px) !important;
}
.hsa-fc--layout-portrait .hsa-fc__body { padding: clamp(16px, 3vw, 44px); }
.hsa-fc--layout-portrait .hsa-fc__badge { top: 14px; left: 14px; }

/* ---------- Layout: Feature (wide image, overlapping panel) ---------- */
.hsa-fc--layout-feature {
	--fc-panel-w: 44%;
	grid-template-columns: 1fr;
	grid-template-areas: "stack";
	min-height: max(var(--fc-min-h), 440px);
}
.hsa-fc--layout-feature .hsa-fc__media,
.hsa-fc--layout-feature .hsa-fc__body { grid-area: stack; }
.hsa-fc--layout-feature .hsa-fc__body {
	position: relative;
	z-index: 1;
	align-self: end;
	justify-self: start;
	width: var(--fc-panel-w);
	min-width: 320px;
	margin: clamp(18px, 2.4vw, 30px);
	padding: clamp(24px, 3vw, 40px);
	background: var(--fc-bg);
	border-radius: max(calc(var(--fc-radius) - 6px), 0px);
	box-shadow: 0 20px 40px -24px rgba(27, 34, 56, .5);
}
.hsa-fc--layout-feature.hsa-fc--img-left .hsa-fc__body { justify-self: end; }
.hsa-fc--layout-feature.hsa-fc--img-right .hsa-fc__badge { left: auto; right: 18px; }
.hsa-fc--layout-feature.hsa-fc--paper { box-shadow: none; }
.hsa-fc--layout-feature.hsa-fc--paper .hsa-fc__body { box-shadow: inset 0 0 0 1px #e4e4e8, 0 20px 40px -24px rgba(27, 34, 56, .5); }
.hsa-fc--layout-feature.hsa-fc--linked:hover .hsa-fc__media img { transform: scale(1.03); }

/* ---------- Mobile: image on top ---------- */
@media (max-width: 767px) {
	.hsa-fc,
	.hsa-fc--img-left,
	.hsa-fc--layout-portrait,
	.hsa-fc--layout-portrait.hsa-fc--img-left {
		grid-template-columns: 1fr;
		grid-template-areas: "media" "body";
		min-height: 0;
	}
	.hsa-fc__media { aspect-ratio: 4 / 3; min-height: 0; }
	.hsa-fc__body { padding: 26px 22px 30px; }

	.hsa-fc--layout-portrait { padding: 22px 22px 0; }
	.hsa-fc--layout-portrait .hsa-fc__media { aspect-ratio: 4 / 5; width: 78%; max-width: 300px; justify-self: center; }
	.hsa-fc--layout-portrait .hsa-fc__body { padding: 30px 0 30px; }

	.hsa-fc--layout-feature { grid-template-areas: "media" "body"; min-height: 0; }
	.hsa-fc--layout-feature .hsa-fc__media { grid-area: media; aspect-ratio: 16 / 11; }
	.hsa-fc--layout-feature .hsa-fc__body,
	.hsa-fc--layout-feature.hsa-fc--img-left .hsa-fc__body {
		grid-area: body;
		width: auto;
		min-width: 0;
		justify-self: stretch;
		margin: -44px 14px 14px;
		padding: 26px 22px 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hsa-fc, .hsa-fc__media img, .hsa-fc__button { transition: none; }
}
