/* OTSA Observatory — site footer ([otsa_footer]). Loaded on every page. */

.otsa-footer {
	position: relative;
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
	overflow: hidden;
	color: rgba(255, 255, 255, 0.8);
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 0.95rem;
	line-height: 1.7;
	text-align: left;
	background: #08304e;
}

html:has(.otsa-footer),
body:has(.otsa-footer) {
	overflow-x: clip;
}

.otsa-footer *,
.otsa-footer *::before,
.otsa-footer *::after {
	box-sizing: border-box;
}

.otsa-footer__lines {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: #66AF96;
	stroke-width: 1.5;
	opacity: 0.18;
	pointer-events: none;
}

.otsa-footer__inner {
	position: relative;
	max-width: 1240px;
	margin: 0 auto;
	padding: 72px clamp(20px, 4vw, 40px) 0;
}

.otsa-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 0.75fr)) minmax(0, 1.75fr);
	gap: 40px 48px;
	padding-bottom: 56px;
}

.otsa-footer__logo {
	display: inline-block;
	margin-bottom: 18px;
	color: #fff;
	font-size: 2rem;
	font-weight: 800;
	text-decoration: none;
}

.otsa-footer__logo img {
	display: block;
	width: auto;
	max-width: 220px;
	height: auto;
	max-height: 72px;
}

.otsa-footer__text p {
	margin: 0 0 10px;
	max-width: 380px;
}

.otsa-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.otsa-footer__social a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	color: #fff;
	transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
}

.otsa-footer__social a:hover,
.otsa-footer__social a:focus-visible {
	border-color: #44965A;
	background: #44965A;
	color: #fff;
	transform: translateY(-3px);
}

.otsa-footer__title {
	margin: 4px 0 18px;
	color: #fff;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.otsa-footer__col ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.otsa-footer a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color 0.25s;
}

.otsa-footer a:hover,
.otsa-footer a:focus-visible {
	color: #66AF96;
}

.otsa-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	overflow-wrap: anywhere;
}

.otsa-footer__contact svg {
	flex: none;
	margin-top: 4px;
	color: #fff;
}

.otsa-footer .otsa-footer__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	color: #66AF96;
	font-weight: 700;
}

.otsa-footer .otsa-footer__cta:hover {
	color: #fff;
}

.otsa-footer__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 22px 0 26px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.82rem;
}

@media (max-width: 1000px) {
	.otsa-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.otsa-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 560px) {
	.otsa-footer__inner {
		padding-top: 56px;
	}

	.otsa-footer__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

/* Three blocks (one link column): give contact the extra room */
@media (min-width: 1001px) {
	.otsa-footer__grid:has(> :nth-child(3):last-child) {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1.6fr);
	}
	.otsa-footer__contact li {
		overflow-wrap: normal;
		white-space: nowrap;
	}
	.otsa-footer__contact li:last-child {
		white-space: normal;
	}
}

/* Blocksy footer integration: the plugin footer fills its row and replaces the others */
#footer:has(.otsa-footer),
.ct-footer:has(.otsa-footer) {
	background: #08304e !important;
	padding: 0 !important;
}
#footer:has(.otsa-footer) [data-row]:not(:has(.otsa-footer)) {
	display: none !important;
}
#footer [data-row]:has(.otsa-footer),
#footer [data-row]:has(.otsa-footer) > div,
#footer [data-row]:has(.otsa-footer) [data-column],
#footer [data-row]:has(.otsa-footer) .ct-widget,
#footer [data-row]:has(.otsa-footer) .widget {
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
	min-height: 0 !important;
	box-shadow: none !important;
}
#footer [data-row]:has(.otsa-footer) .ct-container,
#footer [data-row]:has(.otsa-footer) .ct-container-fluid {
	display: block !important;
	max-width: none !important;
	width: 100% !important;
}
#footer [data-row]:has(.otsa-footer) .otsa-footer {
	width: 100%;
	margin-left: 0;
}

/* Blocksy "back to top" button: visible over the dark footer */
.ct-back-to-top {
	background: #44965A !important;
	color: #fff !important;
	--theme-icon-color: #fff;
	--theme-icon-hover-color: #fff;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 10px 24px -8px rgba(0, 0, 0, 0.45) !important;
}
.ct-back-to-top svg {
	fill: #fff !important;
	color: #fff !important;
}
.ct-back-to-top:hover {
	background: #66AF96 !important;
}
