/*
 * Theme Name: ABL
 * Theme URI: https://abl-group.com/
 * Author: Jack Lenox/Low-carbon Digital
 * Description: The theme for the ABL Group website
 * Version: 0.0.2
 * Tested up to: 5.7
 * Requires PHP: 5.6
 * License: GNU General Public License v2 or later
 * License URI: LICENSE
 * Text Domain: abl
 */


/* Typography
--------------------------------------------- */
@font-face {
	font-display: optional;
	font-family: 'Prompt';
	font-style: normal;
	font-weight: 400;
	src: url('fonts/Prompt-Regular.woff2') format('woff2');
	unicode-range: U+0020-007F;
}

@font-face {
	font-display: optional;
	font-family: 'Prompt';
	font-style: normal;
	font-weight: 400;
	src: url('fonts/Prompt-Regular-Extra.woff2') format('woff2');
	unicode-range: U+00A0-00FF, U+0100-017F;
}


/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}




:root {
	font-family: 'Inter', sans-serif;
}

html {
	scroll-behavior: smooth;
}

a.has-background {
	color: white;
}

.has-blue-background-color {
	background-color: #002855;
}

.has-blue-color, .has-blue-color:visited {
	color: #002855;
}

.has-blue-color, .has-blue-color:active {
	color: #002855;
}

.wp-block-button__link.has-blue-color, .wp-block-button__link.has-blue-color:active {
	color: #002855;
}

.is-style-outline .has-blue-color:hover {
	background-color: #002855 !important;
	border-color: #002855;
	color: white !important;
}

.has-limegreen-background-color {
	background-color: #79C300;
}

.has-limegreen-color, .has-limegreen-color:visited {
	color: #79C300;
}

.wp-block-button__link.has-limegreen-color, .wp-block-button__link.has-limegreen-color:visited {
	color: #79C300;
}

.is-style-outline .has-limegreen-color:hover {
	background-color: #79C300 !important;
	border-color: #79C300;
	color: white !important;
}

.has-oceangreen-background-color {
	background-color: #034159;
}

.has-oceangreen-color, .has-oceangreen-color:visited {
	color: #034159;
}

.wp-block-button__link.has-oceangreen-color, .wp-block-button__link.has-oceangreen-color:visited {
	color: #034159;
}

.is-style-outline .has-oceangreen-color:hover {
	background-color: #034159 !important;
	border-color: #034159;
	color: white !important;
}

.has-darkgrey-background-color {
	background-color: #0F2434;
}

.has-darkgrey-color, .has-darkgrey-color:visited {
	color: #0F2434;
}

.wp-block-button__link.has-darkgrey-color, .wp-block-button__link.has-darkgrey-color:visited {
	color: #0F2434;
}

.is-style-outline .has-darkgrey-color:hover {
	background-color: #0F2434 !important;
	border-color: #0F2434;
	color: white !important;
}

.has-lightgrey-background-color {
	background-color: #B1C1CC;
}

.has-lightgrey-color, .has-lightgrey-color:visited {
	color: #B1C1CC;
}

.wp-block-button__link.has-lightgrey-color, .wp-block-button__link.has-lightgrey-color:visited {
	color: #B1C1CC;
}

.is-style-outline .has-lightgrey-color:hover {
	background-color: #B1C1CC !important;
	border-color: #B1C1CC;
	color: #0F2434 !important;
}

.has-teal-background-color {
	background-color: #0AC49A;
}

.has-teal-color, .has-teal-color:visited {
	color: #0AC49A;
}

.wp-block-button__link.has-teal-color, .wp-block-button__link.has-teal-color:visited {
	color: #0AC49A;
}

.is-style-outline .has-teal-color:hover {
	background-color: #0AC49A !important;
	border-color: #0AC49A;
	color: white !important;
}

.has-midgrey-background-color {
	background-color: #193D59;
}

.has-midgrey-color, .has-midgrey-color:visited {
	color: #193D59;
}

.wp-block-button__link.has-midgrey-color, .wp-block-button__link.has-midgrey-color:visited {
	color: #193D59;
}

.is-style-outline .has-midgrey-color:hover {
	background-color: #193D59 !important;
	border-color: #193D59;
	color: white !important;
}

body {
	max-width: 100%;
	overflow-x: hidden;
	margin: 0;
	padding: 0;
}


* {
	scrollbar-width: thin;
	scrollbar-color: #193D59 white;
}

*::-webkit-scrollbar {
  width: 12px;
}

*::-webkit-scrollbar-track {
  background: white;
}

*::-webkit-scrollbar-thumb {
  background-color: #193D59;
  border-radius: 0;
  border: 3px solid white;
}

.site {
	overflow-x: hidden;
	position: relative;
}

.site-header {
	padding: 2em 5em;
	max-width: 70em;
	margin: 0 auto;
}

.hentry {
	max-width: 70em;
	margin: 0 auto;
}

.site-main {
	max-width: 70em;
	margin: 0 auto;
	padding: 0 5em;
}

.site-footer .wp-block-cover__inner-container {
	margin: 0 auto;
}

.site-footer a:hover {
	color: white;
}

.abl-group-asa-logo {
	max-width: 150%;
}

.cluster {
	--space: 2.5rem;
}

.cluster > * {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	margin: calc(var(--space) / 2 * -1);
}

.cluster > * > * {
	margin: calc(var(--space) / 2);
}

.main-navigation {
	align-items: center;
	display: flex;
}

li.dismiss-menu-item {
	display: none;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	background-color: #0F2434;
	float: left;
	padding: 1em;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
	flex-direction: column;
	opacity: 0;
	transition: opacity 0.2s;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul.mega-menu ul {
	padding: 0;
} 

.main-navigation ul ul:not(.mega-menu) li:hover > ul,
.main-navigation ul ul:not(.mega-menu) li.focus > ul {
	display: block;
	left: 100%;
	top: -30%;
}

.main-navigation ul ul a {
	color: #B1C1CC;
	width: 200px;
	font-weight: normal;
	letter-spacing: 0;
	padding: .5em 1em;
	text-transform: revert;
}

.main-navigation ul li.menu-item-28:hover ul.mega-menu {
	left: -30em;
}

.main-navigation ul li.menu-item-28 ul.mega-menu a {
	width: 20em;
}

.main-navigation ul ul li a:hover {
	color: #FFFFFF;
	text-decoration: none;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
	opacity: 1;
}

.main-navigation ul li:hover > ul.mega-menu,
.main-navigation ul li.focus > ul.mega-menu {
	left: -15em;
}

.main-navigation ul li:hover > ul.mega-menu ul,
.main-navigation ul li.focus > ul.mega-menu ul {
	opacity: 1;
	position: revert;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul#primary-menu {
	display: block;
}

@media screen and (min-width: 70em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}


ul.menu {
	padding: 0;
	list-style: none;
}

li.menu-item a {
	color: #002855;
	font-size: .8em;
	font-weight: 600;
	letter-spacing: .08rem;
	padding: 2em 0;
	text-decoration: none;
	text-transform: uppercase;
}

ul.mega-menu {
	display: flex;
	flex-direction: row !important;
	opacity: 1;
}

ul.mega-menu > li > a {
	color: white;
	font-weight: bold;
	text-transform: uppercase;
}

.alignfull {
	margin: 0 calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.wp-block-cover__inner-container {
	padding: 0 5em;
	max-width: 70rem;
}

img {
	height: auto;
}

.trailing-dot::after {
	color: #79C300;
	content: ".";
	font-weight: bold;
}

.slider {
	background: #002855;
	position: relative;
	height: 500px;
	overflow: hidden;
}

.slider p a {
	color: #79C300;
}

.slider p a:hover {
	text-decoration: underline;
}

.slider p span a {
	color: #B1C1CC;
	text-transform: uppercase;
	font-size: 0.8em;
	font-weight: 600;
	letter-spacing: 0.1em;
	margin-right: 3em;
	text-decoration: none;
	transition: all .5s;
}

.slider p span a.active, .slider p span a:hover {
	color: #79C300;
}

.slider ul {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.slider ul li {
	position: absolute;
	transition: all .5s;
}

.slider ul li.inactive {
	opacity: 0;
	transform: translateY(1em);
}

.slider ul li a {
	color: #B1C1CC;
	text-decoration: none;
}

.slider ul li a:hover {
	color: white;
}

.slider h3 {
	border-top: 2px solid #B1C1CC;
	letter-spacing: -0.04em;
	padding-top: 1em;
}

.slider h3 a {
	color: white;
	font-weight: unset;
	text-decoration: none;
}

.slide {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0px;
	top: 0px;
	opacity: 0;
	z-index: 1;

	-webkit-transition: opacity 2s;
	-moz-transition: opacity 2s;
	-o-transition: opacity 2s;
	transition: opacity 2s;
}

.slide img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.showing {
	opacity: 1;
	z-index: 2;
}

.shadow-box {
	position: absolute;
	left: 0px;
	top: 0px;
	width: 50%;
	height: 100%;
	z-index: 3;
	background-color: rgb(0, 40, 85);
	mix-blend-mode: multiply;
	opacity: 80%;
}

.shadow-text {
	position: absolute;
	left: 0px;
	top: 0px;
	width: 35%;
	margin-left: 5%;
	padding-left: 5%;
	z-index: 4;
}

.shadow-text p {
	margin-top: 1.5em;
	color: white;
}

.site-branding {
	max-width: 10.75em;
}

img {
	max-width: 100%;
}

.weight-light {
	font-weight: 300;
}

.wp-block-image figure figcaption {
	background-color: rgb(0, 40, 85);
	padding: 1em 0;
	margin-top: -0.5em;
	text-align: center;
	color: white;
	text-transform: uppercase;
	font-size: 0.8em;
	letter-spacing: 0.08em;
}

.wp-block-button__link {
	border-radius: .5em;
	text-transform: uppercase;
	font-size: .8em;
	font-weight: 600;
	padding: 1em 2em;
	transition: all .3s;
}

body.archive .entry-title {
	font-weight: 700;
	letter-spacing: -.04em;
}

body.archive .entry-title a {
	color: #0F2434;
	text-decoration: none;
	font-weight: unset;
}

body.archive .entry-meta, body.post-template-default article.post .entry-meta, body.event-template-default article.event .entry-meta {
	color: #0F2434;
	font-size: 0.8em;
	font-weight: 600;
	letter-spacing: .1em;
	margin-bottom: 1em;
	text-transform: uppercase;
}

.entry-meta-box {
	width: 35%;
}

body.archive .site-main, body.search .site-main,
body.error404 .site-main {
	padding-bottom: 5em;
}

body.archive.post-type-archive-people article.hentry,
body.archive.post-type-archive-office article.hentry {
	display: flex;
	flex-direction: column;
	height: 100%;
}

body.archive.post-type-archive-people article.hentry .entry-content,
body.archive.post-type-archive-office article.hentry .wp-block-buttons {
	margin-top: auto;
}

body.post-template-default article.post, body.event-template-default article.event {
	display: flex;
	justify-content: space-between;
}

body.post-template-default article.post .entry-content, body.event-template-default article.event .entry-content {
	max-width: 40em;
	width: 60%;
}

body.post-template-default article.post .entry-content h1, body.event-template-default article.event .entry-content h1 {
	margin-top: 0;
}

.entry-content li {
	line-height: 1.5em;
}

.entry-content li::marker {
	color: #0ac49a;
}

.abl-archive {
	margin: 0 auto;
	max-width: 70em;
}

.news-header {
	align-items: center;
	display: flex;
}

.news-header p {
	margin-right: 5em;
}

.taxonomy-select input[type="submit"] {
	background-color: transparent;
	border: 2px solid;
	border-radius: .5em;
	cursor: pointer;
	font-size: .8em;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin: .3em;
	padding: 1em 2em;
	text-transform: uppercase;
	transition: all .3s;
}

.taxonomy-select input[type="submit"]:hover {
	background-color: #0ac49a;
	border-color: #0ac49a;
	color: white;
}

.taxonomy-select select {
	appearance: none;
	background-color: #ffffff;
	border: 2px solid #ffffff;
	border-radius: 0;
	color: #0f2434;
	cursor: pointer;
	font-size: .8em;
	font-weight: 600;
	margin: .3em;
	padding: 1em 2em;
	text-transform: uppercase;
}

.taxonomy-select select option {
	text-transform: none;
}

.taxonomy-select select:hover {
	border-color: #888;
}

.taxonomy-select input[type="text"] {
	appearance: none;
	background-color: #ffffff;
	border: 2px solid #ffffff;
	border-radius: 0;
	color: #0f2434;
	font-size: .8em;
	font-weight: 600;
	margin: .3em;
	padding: 1em 2em;
	text-transform: uppercase;
}

.abl-horizontal-scroller {
	overflow-x: scroll;
}

.abl-horizontal-scroller > .wp-block-columns {
	width: 130em;
	max-width: 130em;
}

.abl-horizontal-scroller .wp-block-columns {
	flex-wrap: nowrap;
}

.abl-strip-item p {
	min-height: 3.6em;
}

.casualty-response {
	margin-left: auto;
	padding-top: 2em;
	padding-right: 2em;
	width: 31em;
}

.casualty-response h3 {
	color: #C31E1E;
	letter-spacing: 0.02em;
	font-size: 1.2em;
	font-weight: 700;
	margin: 0;
	padding: 0;
	text-transform: uppercase;
}

.casualty-response a {
	text-decoration: none;
}

.casualty-response p {
	font-size: 0.85em;
	margin: 0;
	padding: 0;
	text-transform: uppercase;
}

.casualty-response p.tel {
	border-left: 2px solid #C31E1E;
	float: right;
	font-size: 1.2em;
	padding: .4em 0;
	text-align: right;
	text-transform: uppercase;
	width: 11em;
}

.casualty-response p.tel a {
	text-decoration: none;
}

.casualty-symbol {
	float: left;
	padding-right: .5em;
	width: 37px;
}

.casualty-symbol .a {
	fill: #C31E1E;
}

.posts-navigation {
	margin: 0 auto;
	max-width: 70em;
}

.posts-navigation .nav-links {
	padding: 1em 0;
}

.nav-previous {
	float: right;
}

.nav-next {
	float: left;
}

.posts-navigation a {
	background-color: transparent;
	border: 2px solid #0ac49a;
	border-radius: .5em;
	color: #0ac49a;
	text-decoration: none;
	text-transform: uppercase;
	font-size: .8em;
	font-weight: 600;
	padding: 1em 2em;
	transition: all .3s;
}

.posts-navigation a:hover {
	background-color: #0ac49a;
	color: white;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

body.home .wp-block-latest-posts.is-grid {
	align-items: flex-start;
	padding: 1.6em 0 0;
}

body.home .wp-block-latest-posts__list li {
	display: flex;
	flex-direction: column-reverse;
	margin-right: 3em !important;
	width: calc(33.333333% - 3em) !important;
}

body.home .wp-block-latest-posts__list li .wp-block-latest-posts__post-date {
	border-left: .15em solid #0ac49a;
	color: white;
	font-size: 1.6em;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 1em;
	margin-left: -1.15em;
	padding-left: 1em;
}

body.home .wp-block-latest-posts__list li a {
	color: #B1C1CC;
}

body.home .wp-block-latest-posts__list li a:hover {
	color: white;
}

div.entry-content .wp-block-abl-event-date p {
	color: #0F2434;
	font-size: 0.8em;
	font-weight: 600;
	letter-spacing: .1em;
	margin-bottom: 1em;
	text-transform: uppercase;
}

@media screen and (max-width: 35em) {
}

@media screen and (max-width: 70em) {
	body,
	button,
	input,
	select,
	optgroup,
	textarea {
		font-size: calc( 12px + 4 * (100vw / 1500));
	}

	.site-header {
		padding: 2em;
	}

	.site-main {
		padding: 0 2em;
	}

	.wp-block-cover__inner-container {
		padding: 0 2em;
	}

	.cluster {
		--space: 1rem;
	}

	.shadow-box {
		width: 100%;
	}

	.shadow-text {
		width: 80%;
	}

	.has-large-font-size {
		font-size: 1.75em;
	}
	body.home .wp-block-latest-posts__list li {
		margin-right: unset !important;
		width: unset !important;
	}

	.casualty-response {
		font-size: 0.9em;
		margin-left: 0;
		padding: 1em;
		text-align: right;
		width: unset;
	}

	.casualty-symbol-link {
		display: none;
	}

	.casualty-response p.tel {
		margin-left: .5em;
		padding-left: .5em;
		width: unset;
	}

	.casualty-symbol {
		float: unset;
		padding: unset;
		margin: 0 auto;
	}

	.menu-toggle {
		background: none;
		border: none;
	}

	.nav-menu {
		width: 100%;
	}

	.site-search-icon {
		display: none;
	}

	.main-navigation {
		flex-direction: column;
	}

	.main-navigation .cluster {
		width: 100%;
	}

	.main-navigation .wp-block-button {
		width: 100%;
	}

	.sub-menu {
		width: 85%;
	}

	li.menu-item a {
		padding: 1em 0;
	}

	.main-navigation ul#primary-menu {
		background-color: #0F2434;
		box-sizing: border-box;
		display: block;
		top: 0;
		right: 0;
		left: 100%;
		height: 100vh;
		overflow: auto;
		padding: 1em;
		position: absolute;
		transform: translateX(0%);
		transition: transform 0.2s;
		z-index: 666;
	}
	
	.main-navigation.toggled ul#primary-menu {
		transform: translateX(-90%);
	}

	.main-navigation ul li.dismiss-menu-item {
		display: block;
		margin-right: 12%;
		text-align: right;
	}

	a.dismiss-menu {
		padding: 1em;
	}

	a.dismiss-menu img {
		filter: invert(1);
	}

	.main-navigation ul ul {
		display: none;
		float: unset;
		position: unset;
		top: unset;
		left: unset;
		z-index: unset;
		flex-direction: unset;
		opacity: unset;
	}

	.main-navigation ul li.focus ul {
		display: flex;
		flex-direction: column !important;
	}

	.main-navigation ul li:hover > ul.mega-menu,
	.main-navigation ul li.focus > ul.mega-menu {
		left: auto;
	}

	.main-navigation a {
		display: inline-block;
	}

	.main-navigation li.menu-item a {
		color: white;
		font-size: 1em;
	}

	.main-navigation ul ul li {
		display: inline-block;
	}

	.main-navigation ul li.menu-item-28:hover ul.mega-menu {
		left: auto;
	}

	.main-navigation ul li.menu-item-28 ul.mega-menu a {
		width: unset;
	}
	
	body.post-template-default article.post, body.event-template-default article.event {
		flex-direction: column;
	}
	body.post-template-default article.post .entry-content, body.event-template-default article.event .entry-content {
		width: 100%;
	}
	.entry-meta-box {
		width: 100%;
	}
	.entry-contact-meta {
		display: none;
	}
}
