/*
Theme Name: Lofthouse
Theme URI: https://harmonicdesign.ca
Author: Harmonic Design
Author URI: https://harmonicdesign.ca
Description: This theme is for use on LRM <strong>only</strong>
*/

:root {
	--border-color: #fff;
}

html {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

*,
*:before,
*:after {
	-webkit-box-sizing: inherit;
	-moz-box-sizing: inherit;
	box-sizing: inherit;
}

* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html,
body {
	margin: 0;
	padding: 0;
	font-size: 22px;
	line-height: 1.6;
	color: #4a4a4a;
	font-family: sans-serif;
	background: #fff;
}

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


iframe {
	max-width: 100%;
}

h1,
h2,
h3,
h4,
h5 {
	line-height: 1.2;
	font-family: sans-serif;
	color: #4e5859;
}

.wp-block-image img:hover{
	opacity: 0.8;
}

.wrap {
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
}

.page #content .wrap {
	max-width: 1024px;
}

.button,
#content .wp-block-button__link {
	padding: 1em 2em;
	background-color: #ac1f28;
	text-decoration: none;
	font-weight: bold;
	border: 2px solid #fff;
	color: #fff;
	display: inline-block;
	transition: all 350ms ease-in-out;
	border-radius: 0;
}

.button:hover,
#content .wp-block-button__link:hover {
	color: #ac1f28;
	background-color: transparent;
	border-color: #ac1f28;
	transition: all 350ms ease-in-out;
}

.hd-box,
.alignfull {
	margin: 32px calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.hd-box.light {
	background-color: #35cffa;
	color: #000;
}

.hd-box.dark {
	background-color: #2d2d2d;
	color: #fff;
}

.hd-box.dark h2,
.hd-box.dark h3 {
	color: #ac1f28;
}

.hd-box.dark hr {
	color: #3e3e3e;
	margin-bottom: 1em;
}

.page-id-6 .hd-box {
	margin-top: 4em !important;
}

.hd_bios h3 {
	margin-bottom: -0.4em;
	color: #ac1f28;
}

.hd_bios .wp-block-separator {
	margin-bottom: 2rem;
}

.hd_bios .is-style-wide {
	color: #ac1f28;
	border-bottom-width: 2px !important;
}

.hdc_accordion_no_bottom_margin {
	margin-bottom: -1em;
}

.hd-accordion-title {
	padding: 12px 22px;
	font-weight: 300;
	display: block;
	background: #ac1f28;
	color: #fff !important;
	text-align: left;
	border: none;
	font-size: 1.3em !important;
	border-bottom: 3px solid #eee;
	-webkit-box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
	box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
	cursor: pointer;
	margin: 0;
}

.hd-accordion-title::before {
	content: "+";
	margin-right: 10px;
	position: relative;
	top: 1px;
}

.hd-accordion-content {
	pointer-events: none;
	opacity: 0;
	position: relative;
	height: 0;
	transition: 0.2s all ease-in-out;
	visibility: hidden;
}

.hd-accordion-title.hd-accordion-active + .hd-accordion-content {
	opacity: 1;
	pointer-events: initial;
	height: initial;
	-webkit-transition: 1s all ease-in-out;
	transition: 1s all ease-in-out;
	visibility: visible;
}

.hd-accordion-title.hd-accordion-active::before {
	content: "-";
	top: -1px;
}

#content > .wrap > .wp-block-dbp-2019-box-block {
	margin-top: -2rem;
}

.hd-box-content {
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	padding: 2rem 0;
}

.page-id-85 .wp-block-quote.is-large,
.page-id-85 .wp-block-quote.is-style-large {
	border-left: 3px dashed;
	margin-bottom: 4em;
}

.page-id-85 .wp-block-quote.is-large cite,
.page-id-85 .wp-block-quote.is-style-large cite {
	text-align: right;
	display: block;
}

.page-id-85 .wp-block-quote.is-style-large cite::before {
	position: relative;
	width: 10px;
	content: "-";
	margin-right: 6px;
}

.home header {
	height: 80vh;
}

.page-id-9 header {
	height: 124vh;
	max-height: 2000px;
	border-bottom: none;
	background-position-y: bottom;
}

.page-id-9 h1 {
	display: none;
}

.page-id-9 .hd-box.dark {
	margin-bottom: -2rem;
}

.page-id-47 .wp-block-group {
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 2px dashed #999;
}

header {
	height: 60vh;
	max-height: 1080px;
	display: grid;
	grid-template-rows: max-content 1fr;
	background-size: cover;
	background-position: 10%;
	color: #fefefe;
	position: relative;
}

#top {
	font-size: 14px;
	line-height: 1;
	border-bottom: 1px solid var(--border-color);
}

#top > .wrap {
	display: grid;
	grid-template-columns: max-content 1fr max-content;
	grid-gap: 0;
}

#top > .wrap > div:first-child {
	border-left: 1px solid var(--border-color);
	border-right: 1px solid var(--border-color);
}

#top_social {
	padding: 0 !important;
}

#top_social > a {
	border-left: 1px solid var(--border-color);
	display: inline-block;
	padding: 1em;
	color: #eee;
}

#top_social > a:hover {
	background-color: var(--border-color);
}

#top_social > a:last-child {
	border-right: 1px solid var(--border-color);
}

#top > .wrap > div {
	padding: 1em;
	padding: 1em;
	align-items: center;
	display: flex;
}

#top svg {
	width: 22px;
	margin-right: 1em;
	fill: #ddd;
}

#top_social a:hover > svg {
	fill: #fff;
}

#top_social svg {
	margin-right: 0;
}

#logos {
	padding: 1em 0;
	z-index: 99;
}

#logos > .wrap {
	display: grid;
	place-items: center;
}


#rc_logo {
	height: 125px;
	display: block;
}

nav {
	border-bottom: 1px solid var(--border-color);
	border-top: 1px solid var(--border-color);
	position: absolute;
	width: 100%;
	padding: 0.4em 0;
	z-index: 1;
	background-color: rgba(0, 0, 0, 0.2);
}

.sticky_nav {
	position: fixed;
	top: 0;
	left: 0;
	background: #3e3e3e;
	z-index: 1;
}

#hd_navigation {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: max-content max-content max-content max-content max-content max-content max-content max-content max-content;
	grid-gap: 2em;
	justify-content: center;
}

#hd_navigation > li {
	padding: 0;
	margin: 0;
	position: relative;
}

#hd_navigation > li > a {
	font-size: 18px;
	text-transform: uppercase;
	font-family: "Roboto", sans-serif;
	text-decoration: none;
	color: #fefefe;
	font-weight: bold;
	text-shadow: 0 0 6px #000000;
}

#hd_navigation > li.nav_callout > a {
	background-color: #ac1f28;
	color: #fff;
	padding: 0.2em 0.4em;
	font-weight: bold;
}

.nav_callout:hover > a::before {
	display: none;
}

.nav_callout:hover > a {
	opacity: 0.8;
}

#hd_navigation > li > a::before {
	opacity: 0;
	content: "";
	position: absolute;
	width: 100%;
	height: 2px;
	bottom: 0;
	border-bottom: 1px solid var(--border-color);
	transition: all 250ms ease-in-out;
}

#hd_navigation > li:hover > a::before {
	opacity: 1;
	transition: all 250ms ease-in-out;
}

#hero {
	height: 100%;
	position: relative;
	z-index: 3;
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.2);
}

.slider_content {
	height: 100%;
	width: 100%;
	padding: 2em 8em;
	background-size: cover;
	background-position: 10%;
	color: #fff;
	display: flex;
	align-items: center;
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	text-align: center;
	transition: all 3500ms ease-in-out;
}

.slider_content > .wrap {
	padding: 2em;
	text-align: left;
}

.slider_content.active {
	opacity: 1;
	transition: all 3500ms ease-in-out;
}

.slider_content h1,
.slider_content h2 {
	font-size: 3em;
	text-align: center;
	color: #fefefe;
	margin: 0;
	padding: 0;
	text-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.slider_content p {
	text-align: center;
}

.slider_content a {
	margin-top: 1em;
	display: inline-block;
}

.slider_content a,
#footer_header a {
	padding: 0.4em 1.2em;
	color: #fff;
	background-color: #ac1f28;
	text-decoration: none;
	font-weight: bold;
	border: 2px solid #ac1f28;
	transition: all 350ms ease-in-out;
}

.slider_content a:hover,
#footer_header a:hover {
	background-color: #be2630;
	transition: all 350ms ease-in-out;
}

#slide_prev,
#slide_next {
	width: 80px;
	height: 80px;
	border: 3px solid #fff;
	border-radius: 50%;
	color: #fff;
	font-size: 100px;
	position: absolute;
	top: 44%;
	line-height: 1;
	align-items: center;
	justify-content: center;
	display: flex;
	padding: 0.5em;
	cursor: pointer;
	opacity: 0.6;
	font-weight: lighter;
	transition: all 350ms ease-in-out;
}
#slide_prev {
	left: 1em;
}
#slide_next {
	right: 1em;
}

#hero:hover > #slide_prev,
#hero:hover > #slide_next {
	opacity: 1;
	transition: all 350ms ease-in-out;
}

.col-1-1 {
	display: grid;
	grid-template-columns: minmax(1px, 1fr) minmax(1px, 1fr);
}

main > section {
	padding: 2rem 0;
}

#about > .wrap {
	display: grid;
	grid-template-columns: 1fr 2fr;
	grid-gap: 3em;
}

#client_logo {
	align-self: center;
}

#latest_projects {
	padding-bottom: 0;
}

#latest_projects h2 {
	text-align: center;
}

#latest_projects_wrapper {
	display: flex;
}

.latest_project {
	position: relative;
	overflow: hidden;
}

.latest_project_image > img {
	display: block;
}

.latest_project_overlay {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(224, 10, 10, 0.8);
	color: #fff;
	text-transform: uppercase;
	display: grid;
	text-align: center;
	align-content: end;
	font-size: 1.4em;
	transition: top 350ms ease-in-out;
	font-weight: bolder;
}

.latest_project_overlay h4 {
	color: #fff;
}

.latest_project:hover .latest_project_overlay {
	top: 0;
	transition: top 350ms ease-in-out;
}

#about h1 {
	font-size: 37px;
}

#home_icons {
	background-color: #fff;
	padding: 0;
}

#home_icons > .wrap {
	display: grid;
	grid-template-columns: minmax(10px, 1fr) minmax(10px, 1fr) minmax(10px, 1fr) minmax(10px, 1fr);
}

.home_icon {
	font-weight: bold;
	font-size: 19px;
	text-align: center;
}

.home_icon > a {
	color: #ac1f28;
	text-decoration: none;
	display: block;
	padding: 2em;
	font-size: 1em;
}

.home_icon > a img {
	display: block;
	margin: 0 auto 1em auto;
}

.home_icon:hover > a {
	background-color: #ac1f28;
	color: #fff;
}

.home_icon:hover > a > img {
	filter: contrast(0) brightness(100);
}

#video {
	border-top: 6px solid #c89a5e;
}

#video_link:hover {
	opacity: 0.8;
}

#reviews {
	background-color: #ac1f28;
	padding: 2em 0;
	text-align: center;
	color: #fff;
}

#reviews a {
	text-decoration: none;
	font-weight: bold;
	color: #fff;
}

#reviews h2 {
	color: #fff;
}

#home_testimonial {
	border: 1px solid #aaa;
	padding: 1em;
	font-size: 0.8em;
	font-style: italic;
}

#home_testimonial > cite {
	position: relative;
	line-height: 1;
}

#home_testimonial > cite::before {
	content: "";
	position: absolute;
	width: 8px;
	height: 2px;
	background-color: #aaa;
	top: 0.5em;
	left: -16px;
}

#home_testimonial > cite::after {
	content: "";
	position: absolute;
	width: 8px;
	height: 2px;
	background-color: #aaa;
	top: 0.5em;
	right: -16px;
}

#footer_header {
	background-image: url(./images/footer.jpg);
	background-size: cover;
	display: grid;
	place-items: center;
	text-align: center;
	color: #2d2d2d;
	padding: 6em 0 12em 0;
}

#footer_header > .wrap {
	padding: 2em;
}
#footer_header h3 {
	font-size: 48px;
	margin-top: 0;
	padding: 0;
	color: #fff;
}

#footer_content {
	position: relative;
	top: -6em;
	margin-bottom: -4em;
	display: grid;
	grid-template-columns: minmax(10px, 1fr) minmax(10px, 1fr);
	background-color: #fff;
}

#footer_content > div > img {
	max-width: 80%;
}

#footer_content > div {
	padding: 2em;
	font-size: 0.8em;
}

#footer_form {
	background-color: #ac1f28;
	color: #fff;
}

#footer_form .hdf-button {
	background-color: transparent;
}

#footer_form .hdf-button:hover {
	background-color: #be2630;
	color: #fff;
	border-color: #eee;
}

#footer_social {
	padding: 0 !important;
}

#footer_social > a {
	border: 1px solid #bbb;
	display: inline-block;
	padding: 1em;
	line-height: 1;
	color: #575759;
	font-size: 14px;
}

#footer_social > a:hover {
	background-color: var(--border-color);
	color: #fff;
}

#footer_social svg {
	width: 22px;
	fill: #444;
	display: block;
	line-height: 1;
}

#footer_social > a:hover > svg {
	fill: #222;
}

.list_icons {
	list-style: none;
	padding: 0;
	margin: 0;
}

.list_icons svg {
	width: 22px;
	fill: #444;
	line-height: 1;
}

.list_icons li {
	display: grid;
	grid-template-columns: max-content 1fr;
	grid-gap: 1em;
	align-items: center;
	margin-bottom: 1em;
}

#footer_bottom {
	padding: 1em 0;
	background-color: #ac1f28;
}

#footer_bottom > .wrap {
	display: grid;
	grid-template-columns: 1fr max-content;
	color: #eee;
	font-size: 14px;
}

#footer_bottom a {
	margin-left: 1em;
	color: #eee;
	text-decoration: none;
}

/*GBLOCK*/
.wp-block-gallery {
	display: flex;
	flex-wrap: wrap;
	list-style-type: none;
	padding: 0;
	margin: 0;
}

.blocks-gallery-grid,
.wp-block-gallery {
	display: flex;
	flex-wrap: wrap;
	list-style-type: none;
	padding: 0;
	margin: 0;
	align-content: center;
}

.wp-block-gallery.columns-4 .blocks-gallery-item {
	width: calc(20% - 1em);
	margin-right: 1em;
}

.blocks-gallery-grid .blocks-gallery-image,
.blocks-gallery-grid .blocks-gallery-item,
.wp-block-gallery .blocks-gallery-image,
.wp-block-gallery .blocks-gallery-item {
	margin: 0 1em 1em 0;
	display: flex;
	flex-grow: 1;
	flex-direction: column;
	justify-content: center;
	position: relative;
}

.home .blocks-gallery-item {
	align-self: center;
	padding: 1em;
}

figure {
	margin: 0;
}

.animateDelay200 {
	animation-delay: 200ms;
}

.animateDelay400 {
	animation-delay: 400ms;
}

.animateDelay600 {
	animation-delay: 600ms;
}

.animateDelay800 {
	animation-delay: 800ms;
}

.animateDelay1000 {
	animation-delay: 1000ms;
}

#hd_toggle_nav {
	display: none;
	position: relative;
	z-index: 9999;
}

#hd_navigation {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	position: relative;
	z-index: 999;
}

#hd_navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#hd_navigation > li.menu-item {
	margin-right: 1em;
	padding: 0.5em;
}

#hd_navigation > li.menu-item:last-child {
	margin-right: 0;
}

#hd_navigation .sub-menu {
	display: none;
	position: absolute;
	padding: 1em;
	background-color: red;
	margin-left: -1em;
	font-weight: normal;
}

#hd_navigation .menu-item-has-children.active > .sub-menu {
	display: block;
}

#hd_navigation .sub-menu li {
	margin-bottom: 1em;
}

#hd_navigation .sub-menu li:last-child {
	margin-bottom: 0;
}
#hd_navigation li.active {
	font-weight: bold;
}

@media (max-width: 1080px) {
	.wrap {
		max-width: 100%;
		padding: 0 1em;
	}

	.home header {
		height: 60vh;
	}

	#top {
		display: none;
	}

	#hd_toggle_nav {
		display: block;
		margin: 0 auto;
		background: transparent;
		border: none;
		color: #fff;
	}

	#hd_toggle_nav.active {
		position: fixed;
		top: 12px;
		right: 12px;
	}

	#hd_navigation {
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		overflow-y: auto;
		background-color: #333232;
		flex-direction: column;
		text-align: center;
		padding-top: 4em;
		transform: translateX(110vw);
		opacity: 0;
		transition: all 300ms ease-in-out;
	}

	#hd_navigation.hd_nav_open {
		transform: translateX(0);
		opacity: 1;
		transition: all 300ms ease-in-out;
		grid-gap: 1em;
	}

	#hd_navigation > li.menu-item {
		margin-right: 0;
	}

	#hd_navigation .menu-item-has-children.active > .sub-menu {
		position: static;
		margin-left: 0;
	}

	#home_icons > .wrap {
		grid-template-columns: 1fr;
	}

	.slider_content {
		padding: 1em;
	}

	.slider_content > .wrap {
		padding: 0;
		grid-template-columns: 1fr;
	}

	.slider_content h2 {
		font-size: 1.2em;
	}

	.slider_content a,
	#footer_header a {
		padding: 0.4em;
	}

	#about > .wrap {
		grid-template-columns: 1fr;
	}

	#footer_header {
		background-position: right;
	}

	#footer_content {
		grid-template-columns: 1fr;
	}

	.col-1-1 {
		grid-template-columns: 1fr;
	}

	.hd-box-content {
		padding: 2rem;
	}

	h3.hd-accordion-title {
		font-size: 1em !important;
	}

	.single-post h1 {
		font-size: 1.4em;
	}

	.page-id-9 header {
		height: 60vh;
	}
	
	#logos {
		padding: 0;
	}
	
	.slider_content p {
		margin-top: 0
	}
}