/*
Theme Name: MXC
Theme URI: http://www.76digital.com/
*/

body {
	font-family: "Source Sans 3", serif;
	margin: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Source Sans 3", serif;
	font-weight: 900;
}


/*********
Main body
 *********/

main{
	max-width: 1024px;
	margin: 0 auto;
	padding: 10px;
}

/*********
Styles for the off canvas
 *********/

#offCanvas {
	background-color: #5E777C;
}

#offCanvas ul li {
	border-bottom: 1px solid #a5a5a5;
}

#offCanvas ul li span,
#offCanvas ul li a {
	position: relative;
	color: #ffffff;
	display: block;
	cursor: pointer;
	line-height: 30px;
	font-size: 20px;
	padding: 10px;
}

#offCanvas ul li a.menuClose {
	background-color: #AFC34C;
}

#offCanvas .menuChild {
	display: none;
	border-top: 1px solid #a5a5a5;
	background-color: #005697;
}

#offCanvas li.menuParent i {
	position: absolute;
	right: 8px;
	font-size: 24px;
	top: 12px;
}

#offCanvas .menuSecondChild {
	background-color: #8e8d8d;
}

/*********
 Styles for the header, media queries at element level
 *********/

.top-bar-wrapper {
	background-color: #005697;
	color: #ffffff;
}

.top-bar a {
	padding: 10px;
}

.top-bar a.topbar-buttons {
	display: inline-block;
	margin-right: 10px;
	font-size: 20px;
}

.top-bar a.topbar-buttons:hover {
	color: #5E777C;
}

.callNowNumbers {
	font-size: 14px;
	padding: 10px;
	display: block;
}

.callNowNumbers .town {
	font-size: 18px;
}

.callNowNumbers .number {
	font-size: 18px;
	font-weight: 700;
}

a.snbTitle {
	font-size: 28px;
}

a.snbTitle span {
	font-size: 34px;
	font-weight: 700;
}

.headerLogoWrapper{
	display: flex;
	flex-wrap: wrap;
}

.headerLogo{
	max-height: 100px;
	margin: 20px;
	flex-basis: 100%;
	text-align: center;
}

.headerLogo a img{
	height: 100%;
	width: auto;
}
.headerTagLine{
	display: flex;
	flex-basis: 100%;
	flex-direction: column;
	justify-content: center;
	text-align: center;
}

.headerTagLine h2 {
	text-transform: uppercase;
	margin: 0;
}


@media only screen and (min-width: 768px) {
	.headerLogoWrapper{
		flex-wrap: nowrap;
	}
	.headerLogo{
		flex-basis: 30%;
	}

	.headerTagLine{
		flex-basis: 70%;
	}

	.headerTagLine h2 {
		text-transform: uppercase;
		font-size: 30px;
	}
}

header .menu-mainmenu-container{
	max-width: 1200px;
	margin: 0 auto;
}

header .mainMenu {
	background-color: #5E777C;
}

header .mainMenu > div > ul {
	display: flex;
	margin-bottom: 0;
}

header .mainMenu > div > ul > li {
	flex-grow: 1;
	flex-shrink: 0;
	flex-basis: auto;
	text-align: center;
	position: relative;
	margin-bottom: 0;
}

header .mainMenu > div > ul > li > a,
header .mainMenu > div > ul > li > span {
	display: block;
	padding: 10px 0;
	font-size: 14px;
	color: #ffffff;
}

@media only screen and (min-width: 768px) {
	header .mainMenu > div > ul > li > a,
	header .mainMenu > div > ul > li > span {
		font-size: 16px;
	}
}

@media only screen and (min-width: 1000px) {
	header .mainMenu > div > ul > li > a,
	header .mainMenu > div > ul > li > span {
		font-size: 18px;
	}
}

header .mainMenu > div > ul > li > span i {
	vertical-align: top;
	margin-top: 1px;
	margin-right: 5px;
}

header .mainMenu > div > ul > li > a:hover,
header .mainMenu > div > ul > li > span:hover {
	background-color: #AFC34C;
}

header .mainMenu > div > ul > li.menuParent span:hover ul {
	display: block;
}

header .menuChild {
	z-index: 99;
	display: none;
	position: absolute;
	left: 0;
	background-color: #AFC34C;
	text-align: left;
	margin: 10px 0 0 0;
	min-width: 200px;
	width: 100%;
	border-radius: 0 0 16px 16px;
	border-left: 1px solid #5E777C;
	border-right: 1px solid #5E777C;
	border-bottom: 1px solid #5E777C;
}

@media only screen and (min-width: 768px) {
	header .menuChild {
		min-width: 250px;
	}
}

@media only screen and (min-width: 1000px) {
	header .menuChild {
		min-width: 300px;
	}
}

header .menuChild li a {
	display: block;
	padding: 8px;
	color: #ffffff;
}

header .menuChild li a:hover {
	background-color: #5E777C;
}

header .menuChild li:last-of-type a:hover {
	border-radius: 0 0 16px 16px;
}

header .menuChild li:first-of-type {
	border-top: 1px dashed #5E777C;
}

.menuDesktop ul{
	display: flex;
}

.menuDesktop ul li{
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 0;
}
.menuDesktop ul li a{
	color: white;
	padding: 10px;
}

/*********
 Styles for the footer, media queries at element level
 *********/

footer {
	background-color: #005697;
	color: #ffffff;
	padding: 20px;
}

.tandcs{
	color: #ffffff;
	padding-bottom: 16px;
	display: inline-block;
	margin-right: 10px;
}

.tandcs:hover{
	color: #AFC34C;
}

/* Foundation overrides */

.grid-container {
	max-width: 87.5rem;
}

.top-bar, .top-bar ul {
	background-color: #005697;
}

ul {
	list-style: none;
}

ul ul,
ol ul,
ul ol,
ol ol,
ul {
	margin-left: 0;
}

a {
	color: #282828;
}

.top-bar a,
.top-bar li {
	color: #ffffff;
	font-size: 18px;
}

.top-bar {
	padding: 0;
}

.top-bar a.snbTitle:hover {
	color: #bbbbbb;
}

.position-left {
	width: 100%;
	transform: translateX(-100%);
}

h1 {
	font-size: 26px;
}

h2 {
	font-size: 22px;
}

h3 {
	font-size: 19px;
}

h4 {
	font-size: 16px;
}

h5 {
	font-size: 12px;
}

/*** On page styles **/

.pageTitle{
	font-size: 34px;
	background-color: #005697;
	color: #ffffff;
	text-align: center;
	margin: 20px 0;
}

.listLinks{
	text-decoration: underline;
	margin: 20px 0;
}

.listLinks li:before{
	font-family: "Font Awesome 5 Pro";
	content: '\f33b';
	margin-right: 5px;
	font-weight: 700;
	text-decoration: none !important;
	color: #005697;
}

.imageBlock{
	display: flex;
	margin: 20px 0;
	justify-content: space-between;
}

.imageBlock a{
	border: 2px solid #005697;
	margin: 0 5px;
	padding: 5px;
	border-radius: 5px;
}

.imageBlock img{
	margin-bottom: 5px;
}

.imageBlock a:hover{
	border: 2px solid #AFC34C;
}

.imageBlock span{
	display: block;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
}

.textLink{
	text-decoration: underline;
	color: #005697;;
}

.alignright{
	float: right;
}
.alignleft{
	float: left;
}

.aligncenter{
	margin: 0 auto;
	display: block;
}

.buttonLinks{
	display: block;
	text-align: center;
}

.buttonLinks li{
	display: inline-block;
	margin-right: 10px;
}

.buttonLinks li a{
	display: block;
	background-color: #afc34c;
	color: #f9fafa;
	border-radius: 5px;
	padding: 10px;
	border: 1px solid #ddd;
	width: fit-content;
}

.buttonLinks li a:hover{
	background-color: #AFC34C;
}