/*
 * The public site footer (frontend/layouts/partials/_footer).
 *
 * Built on the site's own --primary-color and --secondary-color, so a theme
 * colour change carries over. It stays dark in both colour modes. Logical
 * properties keep it right for right-to-left languages.
 */

.ft {
	--ft-bg: var(--secondary-color, #0f0d1d);
	--ft-ink: #ffffff;
	--ft-text: rgba(255, 255, 255, .72);
	--ft-muted: rgba(255, 255, 255, .52);
	--ft-line: rgba(255, 255, 255, .1);
	--ft-raised: rgba(255, 255, 255, .05);
	--ft-accent: var(--primary-color, #3c72fc);

	position: relative;
	overflow: hidden;
	padding-top: clamp(56px, 6vw, 88px);
	background: var(--ft-bg);
	color: var(--ft-text);
	font-size: 15px;
	isolation: isolate;
}

/* A soft glow of the brand colour and faint grid lines behind everything. */
.ft__glow {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(60% 50% at 15% 0%, color-mix(in srgb, var(--ft-accent) 26%, transparent) 0%, transparent 70%),
		radial-gradient(45% 45% at 100% 100%, color-mix(in srgb, var(--ft-accent) 16%, transparent) 0%, transparent 70%);
}

.ft__glow::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--ft-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--ft-line) 1px, transparent 1px);
	background-size: 64px 64px;
	opacity: .35;
	-webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
	mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
}

/* The theme colours every span (style.css); here they take the colour of
   the text around them. */
.ft span {
	color: inherit;
}

.ft a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}

.ft a:hover {
	color: var(--ft-ink);
}

.ft a:focus-visible,
.ft-btn:focus-visible {
	outline: 2px solid var(--ft-ink);
	outline-offset: 3px;
	border-radius: 6px;
}

.ft-flip {
	flex: none;
}

[dir="rtl"] .ft-flip {
	transform: scaleX(-1);
}

/* ---------------------------------------------------------- Call to action */

.ft-cta {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px 40px;
	margin-bottom: clamp(48px, 5vw, 72px);
	padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 24px;
	background:
		radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--ft-accent) 55%, transparent) 0%, transparent 60%),
		linear-gradient(135deg, color-mix(in srgb, var(--ft-accent) 30%, var(--ft-bg)) 0%, color-mix(in srgb, var(--ft-accent) 8%, var(--ft-bg)) 100%);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}

.ft-cta__text {
	flex: 1 1 380px;
	min-width: 0;
}

.ft .ft-cta__eyebrow {
	display: inline-block;
	margin-bottom: 10px;
	padding: 5px 12px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: var(--ft-ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.ft-cta__title {
	margin: 0 0 8px;
	color: var(--ft-ink);
	font-size: clamp(24px, 2.4vw, 34px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
}

.ft-cta__lead {
	margin: 0;
	color: rgba(255, 255, 255, .78);
	font-size: 16px;
}

.ft-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ft-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.ft .ft-btn--primary {
	background: #ffffff;
	color: var(--ft-bg);
}

.ft .ft-btn--primary:hover {
	background: rgba(255, 255, 255, .88);
	color: var(--ft-bg);
	transform: translateY(-1px);
}

.ft .ft-btn--ghost {
	border-color: rgba(255, 255, 255, .3);
	color: var(--ft-ink);
}

.ft .ft-btn--ghost:hover {
	border-color: var(--ft-ink);
	background: rgba(255, 255, 255, .08);
}

@media (max-width: 575.98px) {
	.ft-cta__actions,
	.ft-btn {
		width: 100%;
	}
}

/* -------------------------------------------------------------- Columns */

/* Phones and tablets: the brand and the contact details full width, the two
   short link lists side by side. */
.ft-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 24px;
	padding-bottom: clamp(40px, 5vw, 64px);
}

.ft-brand,
.ft-col--contact {
	grid-column: 1 / -1;
}

@media (min-width: 992px) {
	.ft-grid {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
		gap: 48px;
	}

	.ft-brand,
	.ft-col--contact {
		grid-column: auto;
	}
}

.ft-brand__logo {
	display: inline-flex;
	align-items: center;
	margin-bottom: 20px;
	color: var(--ft-ink);
	font-size: 26px;
	font-weight: 700;
}

.ft-brand__logo img {
	display: block;
	width: auto;
	max-width: 200px;
	height: 40px;
	object-fit: contain;
}

.ft-brand__text {
	max-width: 360px;
	margin: 0 0 24px;
	color: var(--ft-text);
	line-height: 1.7;
}

.ft-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ft-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--ft-line);
	border-radius: 50%;
	background: var(--ft-raised);
	color: var(--ft-ink);
	font-size: 15px;
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.ft-social a:hover {
	border-color: var(--ft-accent);
	background: var(--ft-accent);
	transform: translateY(-2px);
}

.ft-col__title {
	position: relative;
	margin: 0 0 22px;
	padding-bottom: 12px;
	color: var(--ft-ink);
	font-size: 17px;
	font-weight: 600;
}

.ft-col__title::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	bottom: 0;
	width: 28px;
	height: 2px;
	border-radius: 2px;
	background: var(--ft-accent);
}

.ft-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ft-links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ft-text);
	transition: color .2s ease, transform .2s ease;
}

.ft-links a:hover {
	color: var(--ft-ink);
	transform: translateX(3px);
}

[dir="rtl"] .ft-links a:hover {
	transform: translateX(-3px);
}

.ft .ft-links__more {
	color: color-mix(in srgb, var(--ft-accent) 70%, #ffffff);
	font-weight: 600;
}

.ft-contact {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ft .ft-contact li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	color: var(--ft-text);
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.ft .ft-contact a {
	color: var(--ft-text);
}

.ft .ft-contact a:hover {
	color: var(--ft-ink);
}

/* A phone number keeps its digits in order but lines up with the column. */
[dir="rtl"] .ft-contact a[dir="ltr"] {
	text-align: right;
}

.ft .ft-contact__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--ft-line);
	border-radius: 12px;
	background: var(--ft-raised);
	color: color-mix(in srgb, var(--ft-accent) 70%, #ffffff);
}

.ft .ft-contact__label {
	display: block;
	margin-bottom: 2px;
	color: var(--ft-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------- Bottom bar */

.ft-bottom {
	border-top: 1px solid var(--ft-line);
	background: rgba(0, 0, 0, .18);
}

.ft-bottom__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 24px;
	padding-block: 22px;
}

.ft-bottom__copy {
	margin: 0;
	color: var(--ft-muted);
	font-size: 14px;
}

.ft-bottom__copy a {
	color: var(--ft-ink);
	font-weight: 600;
}

.ft-bottom__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.ft-bottom__links a {
	color: var(--ft-muted);
}

@media (max-width: 575.98px) {
	.ft-bottom__inner {
		flex-direction: column;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ft *,
	.ft *::after {
		transition: none !important;
	}

	.ft-links a:hover,
	.ft-social a:hover,
	.ft .ft-btn--primary:hover {
		transform: none;
	}
}
