/*
Theme Name:		Modules - Grid
Author:			CMS Web Solutions
Author URI:		http://cmswebsolutions.com
*/

* {
	box-sizing: border-box;
}

html {
    font-size: 18px;
}

body {
	margin: 0 auto;
	font-family: Montserrat, sans-serif;
	font-weight: 400;
	position: relative;
	color: #010101;
	background-color: #fffefe;
}

article, aside, details, embed, figcaption, figure, footer, header, iframe, main, menu, nav, section, summary {
	display: block;
	position: relative;
	margin: 0 auto;
}

h1 {
	line-height: 1;
	color: #C73F34;
	font-weight: 400;
	padding-bottom: .25em;
	font-size: 2.5em;
	position: relative;
}

h2 {
	line-height: 1;
	font-weight: 500;
	color: #48514E;
	margin: 1.5em 0 .75em;
	font-size: 1.5em;
}

h2 a {
	color: #48514E;
	-webkit-text-decoration-color: #aaa;
	text-decoration-color: #aaa;
}

h2 a:hover,
h2 a:focus {
	color: #C73F34;
	-webkit-text-decoration-color: #222;
	text-decoration-color: #222;
}

h3 {
	line-height: 1;
	font-weight: 500;
	color: #C73F34;
	margin: 1.5em 0 .75em;
	font-size: 1.2em;
}

h4 {
	line-height: 1;
	font-weight: 600;
	color: #48514E;
	margin: 1.5em 0 .75em;
	font-size: 1.1em;
}

.subtitle {
	font-size: 1.1em;
}

.green {
	color: #C73F34;
}

strong {
	font-weight: 600;
}

p, li, dt, dd {
	line-height: 1.5;
}

li, p + p, dt, dd {
	margin-top: 0;
}

p * {
	margin-top: 0;
}

ul,ol {
	padding-left: 1.5em;
}

blockquote {
    background-color: #eee;
    border-left: 10px solid #ddd;
    margin: 0 0 1.5em;
    padding: 1em;
}

cite {
	display: block;
}

img {
	max-width: 100%;
	height: auto;
	border-style: none;
}

a {
	color: #000;
	transition: color .1s;
}

main a:not( [href*='build2.cmsdev.ca'] ):not( [href^='#'] ):not( [href^='/'] ):not( [href^='mailto'] ):after {
	content: url(img/new-tab.svg);
	display:  inline-block;
	margin-left:  .1em;
}

main a.linked:not( [href*='build2.cmsdev.ca'] ):not( [href^='#'] ):not( [href^='/'] ):after {
	content: '';
}

a[href^="tel:"] {
	text-decoration: none;
}

a:hover,
a:focus {
	color: #C73F34;
}

a:active {
	transition: color 2s;
	color: blue;
}

a img {
	border: none;
	outline: none;
}

iframe,embed {
	max-width: 100%;
}

button,input,select,textarea {
	font: inherit;
	margin: 0;
}

button,
input[type=submit],
.button {
	color: #222;
	background-color: #eee;
	border: 1px solid #eee;
	border-radius: .25em;
	padding: .25em 1em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
}

button:hover,
button:focus,
input[type=submit]:hover,
input[type=submit]:focus,
.button:hover,
.button:focus {
	color: #eee;
	background-color: #222;
}

table {
	border-collapse: collapse;
	margin: 1em auto 2em;
	padding: 0;
	width: 100%;
	max-width: 100%;
	overflow-x: scroll;
}

table caption {
	font-weight: 600;
	text-align: left;
	font-size: 125%;
	padding-bottom: .25em;
}

table thead,table tbody {
	max-width: 100%;
}

table thead {
	text-align: left;
}

table th {
	font-weight: 700;
	font-size: 1.05em;
}

table tr {
	border-bottom: 1px solid #eae4de;
}

table tr:hover,table tr:focus {
	background-color: #eae4de;
}

table tr td,table tr th {
	padding: .25em;
	text-align: left;
}

.hidden {
	position: absolute;
	left: -1000em;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: -1px;
	padding: 0;
	clip: rect(0,0,0,0);
	border: 0;
}

.clearfix {
	overflow: hidden;
	content: "";
	visibility: hidden;
	display: block;
	height: 1px;
	width: 1px;
	clear: both;
}

@-webkit-keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

a.skip {
	position: absolute;
	top: 0;
	left: -1000em;
	background-color: #354c65;
	color: #fff;
	text-decoration: none;
	border-radius: 0 0 3px 3px;
}

a.skip:focus,
a.skip:hover {
	left: 1em;
	top: 0;
	padding: .5em 1em;
}

.inner {
	margin: 0 auto;
	padding: 0 1em;
	max-width: 1200px;
}

.logo {
	margin: 1em auto;
	display: block;
	text-align: center;
}

.vcard {
	color: #434343;
	margin: 1em 0;
	font-size: 1.1em;
	text-align: center;
}

.vcard p {
	margin: .25em 0;
	line-height: 1.1;
}

.vcard a {
	text-decoration: none;
}

.tel, .tel a {
	color: #C73F34;
	font-size: 1.1em;
}

.tel a:hover,
.tel a:focus {
	color: #434343;
}

.email a {
	color: #434343;
	border-bottom: 1px solid #dadada;
}

.email a:hover,
.email a:focus {
	color: #C73F34;
	text-decoration: none;
	border-bottom: 1px solid #C73F34;
}

nav {
	color: #fff;
	background-color: #48514E;
}

nav button {
	transition: none;
	cursor: pointer;
	text-transform: uppercase;
	display: block;
	width: 100%;
	color: #fff;
	background-color: #48514E;
	margin: 0 auto;
	padding: .25em 0;
	font-size: 1.25em;
	font-weight: 700;
	text-align: center;
	border: none;
	border-radius: 0;
}

nav button:hover,
nav button:focus {
	color: #48514E;
	background-color: #d8d8d8;
}

nav ul {
	width: 100%;
	margin: 0;
	padding-left: 0;
	display: none;
}

nav ul [aria-haspopup="true"] + ul[aria-hidden="false"] {
	display: block;
	position: static;
	top: auto;
}

nav ul [aria-haspopup="true"] + ul[aria-hidden="false"] li {
	flex: unset;
    display: block;
    width: 100%;
}

nav ul [aria-haspopup="true"] + ul[aria-hidden="false"] a {
    text-align: center;
}

nav .open + ul {
	display: block;
}

nav .open + ul li {
	padding: .5em;
	text-align: center;
}

nav .open + ul li:hover,
nav .open + ul li:focus {
	background-color: #d8d8d8;
}

nav a {
	text-decoration: none;
	text-align: center;
	color: #fff;
	padding: .25em 0;
}

nav a:hover,
nav a:focus,
nav a:active {
	color: #48514E;
}

nav li {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	border-bottom: 1px solid #d8d8d8;
}

nav ul [aria-haspopup="true"] + ul[aria-hidden="false"] {
	margin-top: 0;
	display: block;
	position: absolute;
	min-width: 16em;
	background-color: rgba(253,253,253,.9);
	z-index: 10;
}

nav ul [aria-haspopup="true"] + ul[aria-hidden="false"] li {
	margin: 0;
}

nav ul [aria-haspopup="true"] + ul[aria-hidden="false"] a {
	padding: .5em .5em .5em 1.25em;
	text-align: left;
}

nav ul [aria-haspopup="true"] + ul[aria-hidden="false"] a:hover,
nav ul [aria-haspopup="true"] + ul[aria-hidden="false"] a:focus {
	color: #48514E;
}

nav ul [aria-haspopup="true"] + ul li {
	display: block;
	position: relative;
}

.hero img {
	width: 100%;
	height: auto;
}

.feature {
	margin: 0 auto;
	padding: .5em;
	text-align: center;
	color: #fff;
	background: #15161a url(img/texture.jpg) center center repeat-y;
	background-size: cover;
}

.main_text,
.secondary_text {
	display: block;
}

.main_text {
	color: #fff;
}

.secondary_text {
	color: #deb526;
	font-size: 1.5em;
}

main {
	width: 100%;
	opacity: 0;
	-webkit-animation: fadeIn ease-in 1;
	animation: fadeIn ease-in 1;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
	-webkit-animation-duration: .4s;
	animation-duration: .4s;
	-webkit-animation-delay: .1s;
	animation-delay: .1s;
}

main .inner {
	display: block;
	padding: 1em 2em;
}

.content {
	flex-basis: 100%;
}

.sidebar {
	margin: 1em 0;
}

.callouts {
	padding: 2em 1em;
	background-color: #ededed;
}

.callouts ul {
	position: relative;
	margin: auto;
	padding: 0;
	width: 100%;
	max-width: 1200px;
}

.callouts li {
	position: relative;
	margin: 0 0 1em;
	padding: 0;
	list-style: none;
	text-align: center;
}

.callouts a {
	text-decoration: none;
}

.callouts a:hover,
.callouts a:focus {
	color: #000;
}

.callouts img {
	display: block;
	background-color: #fff;
	padding: .25em;
	border:  1px solid #fff;
	outline: 1px solid #000;
}

.callouts figure:hover img,
.callouts figure:focus img {
	border:  1px solid #5ac301;
}

.callouts figcaption {
	margin-top: 1em;
	color: #000;
	font-size: 1.1em;
	font-weight: 600;
}

.row {
	margin: 2em 0;
	padding-bottom: 2em;
	border-bottom: 1px solid #828182;
}

.row:last-of-type {
	border-bottom: none;
}

.row a {
	text-decoration: none;
}

.row a.read-more {
	text-decoration: underline;
}

.row img {
	max-width: 20%;
	display: inline-block;
	margin: 0 2em 2em 0;
	vertical-align: top;
}

.row a:hover img,
.row a:focus img {
	border: 4px solid #222;
}

.row .details {
	display: inline-block;
	max-width: 75%;
}

.blog .row .details {
	max-width: 70%;
}

.row .details h2 {
	margin: 0;
	padding: 0 0 .25em 0;
	font-size: 1.1em;
	font-weight: 600;
	color: #48514E;
	border-bottom: 1px solid #48514E;
	display: inline-block;
}

.sectionnav {
	padding: 1em 0;
}

.sectionnav h3 {
	margin-top: 1em;
}

/* Default gallery */
.gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.gallery-item {
	margin: 1em;
}

@supports ((display: -ms-grid) or (display: grid)) {
	.gallery {
		display: -ms-grid;
		display: grid;
		-ms-grid-columns: (minmax(260px, 1fr))[auto-fit];
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
		grid-gap: 1em;
	}

	.gallery-item {
		margin: 0;
	}
}

.gallery-caption {
	margin: 0;
	text-align: center;
}

.gallery br {
	display: none;
}

.post-list article {
	border-bottom: 1px solid #CCC;
	margin-bottom: 1.5em;
}

.post-list article h2 a {
	text-decoration: none;
	text-transform: none;
}

.post-list article:last-child {
	border: none;
}

.post-list article a.read-more {
	display: block;
}

.alignleft,img.alignleft {
	display: inline;
	float: left;
	margin: 0 1.5em 1.5em 0;
}

.alignright,img.alignright {
	display: inline;
	float: right;
	margin: 0 0 1.5em 1.5em;
}

.aligncenter,img.aligncenter {
	display: block;
	clear: both;
	margin: 0 auto 1.5em;
}

.wp-caption {
	max-width: 100%;
	position: relative;
	display: block;
}

.wp-caption img {
	display: block;
	max-width: 100%;
	height: auto;
}

.wp-caption p.wp-caption-text {
	display: block;
	position: absolute;
	width: 100%;
	margin: 0;
	padding: .5em;
	left: 0;
	bottom: 0;
	color: #fff;
	background: rgba(0,0,0,0.7);
}

ul.navigation {
	margin: 0;
	padding: 0 !important;
	list-style-type: none;
}

ul.navigation li {
	float: right;
}

ul.navigation li.newer {
	float: left;
}

footer {
	position: relative;
	bottom: 0;
	width: 100%;
	color: #fff;
	background-color: #48514E;
}

footer h3 {
	color: #C73F34;
	text-transform: uppercase;
}

footer .cols {
	padding: 1em;
	display: block;
}

footer .col {
	margin-bottom: 2em;
}

footer .col a {
	color: #C73F34;
}

footer .col a:hover,
footer .col a:focus {
	color: #fff;
}

@media screen and (min-width: 769px) {

	.logo {
		max-width: 334px;
		margin: .5em 0;
		text-align: left;
	}

	.vcard {
		text-align: right;
		font-size: 1.2em;
	}

	@supports ((display: -ms-grid) or (display: grid)) {
		header .inner {
			margin: 1em auto;
			display: -ms-grid;
			display: grid;
			-ms-grid-columns: 40% 60%;
			grid-template-columns: 40% 60%;
			align-items: end;
		}

		.vcard {
			margin: 0;
		}
	}

	nav button {
		display: none;
	}

	nav ul {
		display: flex;
		justify-content: space-between;
		font-size: .9em;
	}

	nav li {
		margin: auto;
		width: auto;
		border-bottom: none;
	}

	nav a {
		display: block;
		text-decoration: none;
		text-align: center;
		padding: .5em;
	}

	nav a:hover,
	nav a:focus {
		background-color: #efefef;
	}

	:not(.home) > main {
		padding-bottom: 5em;
	}

	.inner,
	main .inner {
		display: flex;
		justify-content: space-between;
	}

	.home main .inner {
		display: block;
	}

	.sidebar {
		flex-basis: 30%;
		margin: 3.75em 3em 0 0;
	}

	.content {
		flex-basis: 100%;
	}

	.callouts ul {
		display: flex;
		flex-wrap: wrap;
	  	justify-content: space-between;
	}

	.callouts li {
		flex-basis: 22.5%;
	}

	footer {
		font-size: 1em;
		padding: 0;
	}

	@supports ((display: -ms-grid) or (display: grid)) {
		footer .cols {
			max-width: 1200px;
			margin: 0 auto;
			display: -ms-grid;
			display: grid;
			-ms-grid-columns: 1fr 1fr 1fr;
			    grid-template-columns: 1fr 1fr 1fr;
			grid-gap: 1em;
		}

		.vcard {
			margin: 0;
		}
	}
}