/**
 * Site footer (UX Block "footer") + absolute footer bar.
 * Markup: section.jit-footer > .jit-footer__col
 */

.jit-footer {
	--jit-footer-text: rgba(255, 255, 255, 0.82);
	--jit-footer-muted: rgba(255, 255, 255, 0.6);
	--jit-footer-line: rgba(255, 255, 255, 0.16);

	font-family: var(--jit-font-sans);
	font-size: 14px;
	line-height: 1.6;
	color: var(--jit-footer-text);
}

.jit-footer .jit-footer__col > .col-inner {
	padding-bottom: 8px;
}

/* Headings */
.jit-footer .jit-footer__title {
	position: relative;
	margin: 0 0 18px;
	padding-bottom: 10px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
}

.jit-footer .jit-footer__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 32px;
	height: 2px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.7);
}

.jit-footer p {
	margin-bottom: 14px;
	color: var(--jit-footer-text);
}

/* Brand column */
.jit-footer .jit-footer__brand .img {
	margin-bottom: 18px;
}

.jit-footer .jit-footer__about p {
	max-width: 340px;
}

/* Shared menu styles (contact + policies) */
.jit-footer .ux-menu-link__link {
	min-height: 0;
	padding: 5px 0 !important;
	align-items: flex-start;
	color: var(--jit-footer-text);
	transition: color var(--jit-transition), transform var(--jit-transition);
}

.jit-footer .ux-menu-link__icon {
	width: 16px;
	margin-top: 4px;
	margin-right: 10px;
	color: #fff;
	opacity: 0.85;
}

.jit-footer .ux-menu-link__link,
.jit-footer .ux-menu-link__text {
	font-size: 14px !important;
	line-height: 1.55;
}

.jit-footer a.ux-menu-link__link:hover {
	color: #fff;
}

.jit-footer .jit-footer__links a.ux-menu-link__link:hover {
	transform: translateX(3px);
}

/* Company list */
.jit-footer .jit-footer__network ul {
	margin: 0;
	list-style: none;
}

.jit-footer .jit-footer__network li {
	position: relative;
	margin: 0;
	padding: 4px 0 4px 14px;
	color: var(--jit-footer-text);
}

.jit-footer .jit-footer__network li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 13px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
}

/* Newsletter form: stack inside the narrow column.
   !important overrides the global .custom-newsletter-form rules in Customizer CSS. */
.jit-footer .jit-footer__newsletter .custom-newsletter-form {
	flex-wrap: wrap;
	gap: 10px;
}

.jit-footer .jit-footer__newsletter .custom-newsletter-form > .flex-col {
	flex: 1 1 100%;
	max-width: 100%;
	margin-left: 0;
}

.jit-footer .jit-footer__newsletter .custom-newsletter-form p,
.jit-footer .jit-footer__newsletter .custom-newsletter-form .flex-col > * {
	display: block;
	width: 100%;
}

.jit-footer .jit-footer__newsletter .custom-newsletter-form .flex-grow {
	margin-bottom: 0 !important;
}

.jit-footer .jit-footer__newsletter .custom-newsletter-form input[type="email"] {
	min-width: 0 !important;
	height: 44px !important;
	padding: 0 16px !important;
	border: 1px solid var(--jit-footer-line) !important;
	border-radius: var(--jit-radius-sm) !important;
	background-color: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
}

.jit-footer .jit-footer__newsletter .custom-newsletter-form input[type="email"]::placeholder {
	color: var(--jit-footer-muted) !important;
}

.jit-footer .jit-footer__newsletter .custom-newsletter-form input[type="email"]:focus {
	border-color: rgba(255, 255, 255, 0.6) !important;
	background-color: rgba(255, 255, 255, 0.18) !important;
	color: #fff !important;
}

.jit-footer .jit-footer__newsletter .custom-newsletter-form input[type="submit"] {
	width: 100% !important;
	height: 44px !important;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: var(--jit-radius-sm) !important;
	background-color: #fff !important;
	color: var(--fs-color-primary) !important;
	font-size: 14px;
	letter-spacing: 0.06em;
}

.jit-footer .jit-footer__newsletter .custom-newsletter-form input[type="submit"]:hover {
	background-color: rgba(255, 255, 255, 0.88) !important;
	color: var(--fs-color-primary) !important;
}

.jit-footer .jit-footer__newsletter .wpcf7 {
	margin-bottom: 28px;
}

.jit-footer .jit-footer__newsletter .wpcf7-spinner {
	position: absolute;
}

.jit-footer .jit-footer__newsletter .wpcf7-response-output {
	margin: 10px 0 0 !important;
	color: #fff;
}

/* Social icons: uniform white-on-glass, brand colour on hover */
.jit-footer .jit-footer__social .icon.button {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 8px 0 0;
	padding: 0;
	border: 0;
	background-color: rgba(255, 255, 255, 0.14) !important;
	color: #fff !important;
	transition: background-color var(--jit-transition), color var(--jit-transition);
}

.jit-footer .jit-footer__social .icon.button:hover {
	background-color: #fff !important;
	color: var(--fs-color-primary) !important;
}

/* Bottom copyright bar */
.absolute-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	background-color: #124f8b !important;
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
}

.absolute-footer .container {
	padding-top: 16px;
	padding-bottom: 16px;
}

.absolute-footer strong {
	color: #fff;
}

/* Tablet: 2 x 2 grid */
@media (max-width: 849px) {
	.jit-footer .jit-footer__col {
		padding-bottom: 24px;
	}
}

/* Mobile: single column */
@media (max-width: 549px) {
	.jit-footer .jit-footer__col {
		padding-bottom: 16px;
	}

	.jit-footer .jit-footer__brand .img {
		max-width: 160px;
	}

	.absolute-footer .footer-primary,
	.absolute-footer .footer-secondary {
		text-align: center;
	}
}
