/*
 * Component: footer — landscape graphic band + 4 columns. The graphic is a 300%-wide centred background
 * (as on live); .hg-footer-wrap clips the horizontal overflow so no scrollbar appears.
 */

.hg-footer-wrap {
	overflow-x: clip;
}

.hg-footer {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	box-sizing: content-box;
	max-width: 1400px;
	height: 100%;
	margin: auto;
	padding: 16% 15px 0;
	color: var(--hg-text-footer);
}

.hg-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 300%;
	height: 100%;
	background: transparent url("../../img/footer-landscape.svg") no-repeat center;
}

.hg-footer__panel {
	position: relative;
	display: flow-root;
	width: 100%;
}

.hg-footer__grid {
	display: flex;
	flex-wrap: wrap;
	margin: 10px 0 10px -25px;
}

.hg-footer__col {
	display: flex;
	flex: none;
	justify-content: space-around;
	align-items: center;
	width: 25%;
	padding-left: 25px;
	border-right: 2px solid var(--hg-text-inverse);
}

.hg-footer__col:last-child {
	border-right: 0;
}

.hg-footer__logo {
	display: block;
}

.hg-footer__block-link {
	display: block;
}

.hg-footer__title {
	display: block;
	margin: 0 0 10px;
	font-size: var(--hg-fs-base);
	font-weight: var(--hg-fw-medium);
	line-height: 0.5;
	color: var(--hg-text-inverse);
}

.hg-footer__news,
.hg-footer__links {
	text-align: center;
}

.hg-footer__news a {
	color: inherit;
}

.hg-footer__title--news {
	margin: 0 0 15px;
}

.hg-footer__link {
	margin: 0;
	font-size: var(--hg-fs-sm);
	color: var(--hg-text-inverse);
}

.hg-footer__link a {
	color: var(--hg-text-inverse);
}

/* Live: a:hover, a:focus { color: #ba7031 !important } also in the footer (Phase 5 QA). */
.hg-footer__news a:hover,
.hg-footer__news a:focus,
.hg-footer__link a:hover,
.hg-footer__link a:focus {
	color: var(--hg-link-hover);
}

@media (min-width: 1220px) {
	.hg-footer__grid {
		margin-left: -35px;
	}

	.hg-footer__col {
		padding-left: 35px;
	}
}

@media (max-width: 1440px) {
	.hg-footer {
		padding-top: 20%;
	}
}

@media (max-width: 1024px) {
	.hg-footer__grid {
		margin: 100px 0 -30px -25px;
		padding: 40px 0;
	}

	.hg-footer__col {
		padding: 0 15px;
	}

	.hg-footer__col--about .hg-footer__title,
	.hg-footer__links .hg-footer__title {
		line-height: 1;
	}
}

@media (max-width: 959px) {
	.hg-footer__col {
		width: 100%;
		padding-bottom: 30px;
	}
}

@media (max-width: 768px) {
	.hg-footer__grid {
		margin-top: 217px;
	}

	.hg-footer__col {
		width: 50%;
		padding: 0;
	}

	.hg-footer__col--about {
		border-right: 0;
	}

	.hg-footer__col--news,
	.hg-footer__col--links {
		display: none;
	}
}

@media (max-width: 767px) {
	.hg-footer__col {
		margin: 10px 0;
		border: 0;
	}
}

@media (max-width: 600px) {
	.hg-footer__panel {
		margin: 10px 0;
	}
}
