/*
	Theme Name: Fastflow
	Theme URI: http://???
	Description: Custom WordPress theme for Fastflow
	Version: 0.1
	Author: Creative Direction
	Author URI: https://creativedirection.info
*/


/*------------------------------------*\
    VARIABLES
\*------------------------------------*/

:root {
	--shadow: 0px 10px 40px rgba(0, 0, 0, 0.15);
	--orange: #D15424;
	--gold: #AD8F77;
	--ivyStyle: ivystyle-sans, sans-serif;
	--meta: ff-meta-web-pro, sans-serif;
}

/*------------------------------------*\
    MAIN
\*------------------------------------*/

/* global box-sizing */
*,
*:after,
*:before {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
/* html element 62.5% font-size for REM use */
html {
	font-size:62.5%;
}
body {
	font-family: var(--meta);
	font-weight: 400;
	font-style: normal;
	color:#0F232E;
	font-size:16px;
	line-height:1.6;
	letter-spacing:0.01em;
}
/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
}
img {
	max-width:100%;
	vertical-align:bottom;
}
a {
	color:#D15424;
	text-decoration:none;
}
a:hover {
	color:#D15424;
}
a:focus {
	outline:0;
}
a:hover,
a:active {
	outline:0;
}
input:focus {
	outline:0;
	border:1px solid #D15424;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ivyStyle);
	font-weight: 400;
	font-style: normal;
	margin-top: 0;
}
h1 {
	font-size: 4.8em;
	font-weight:300;
	letter-spacing: -0.04em;
	line-height:1.05em;
}
h2 {
	font-size: 2.4em;
	line-height:1.1612903225806;
	letter-spacing: -0.03em;
}

h3 {
	font-size: 2.1em;
	letter-spacing: -0.03em;
	line-height: 1.7em;
}

h6 {
	font-weight: normal;
	font-size: 13px;
	letter-spacing: 0.2em;
	color: #b38e73;
	text-transform: uppercase;
	margin-bottom: 1em;
}

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

/* wrapper */
.wrapper {
/*	max-width:1280px;*/
/*	width:95%;*/
	margin:0 auto;
	position:relative;
}
.inner {
	width:85%;
	margin:0 auto;
	position: relative;
}
.inner-narrow {
	width:75%;
}
.inner-wide {
	width:90%;
}
/* header */
.header {
	z-index:2;
	color:#fff;
	position:fixed;
	display: block;
	top:0;
	width:100%;
}

.header .inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	text-transform: uppercase;
	font-size:0.85em;
	font-family: var(--ivyStyle);
	letter-spacing: 0.12em;
	font-weight:normal;
	border-bottom: 1px solid #9db0bc;
	box-sizing: border-box;
	padding:2em 0;
}
.header-phone {
	margin-left:2em;
}
.header-phone-intro {
	text-transform: uppercase;
	color:var(--orange);
	margin-right:1em;
	letter-spacing: 0.09em;
}
.header-phone-number {
	font-weight: 600;
}
/* logo */
.logo {

}
.logo-img {

}
/* nav */
.nav {
	width:80%;
	margin-left: 5%;
	height:100%;
}

.nav ul {
	list-style:none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.nav ul li {
	margin-bottom: 0;
}
.nav ul li a {
	color:#fff;
	transition:0.6s all;
}

.nav ul li.current_page_item a {
	color:#D15424;
}

.nav ul li a:hover {
	color:var(--orange);
}
/* sidebar */
.sidebar {

}
/* footer */
.footer-logos {
	background-color: #fff;
	z-index:3;
	display: block;
	display: none;
	position: relative;
}
.footer-logos .inner-narrow {
	display: flex;
	justify-content: space-between;
	width:40%;
	padding-bottom:100px;
}
.footer {
	background-color: #07242F;
	color:#fff;
	background-image: url(img/footer-bg.svg);
	background-size: 70%;
	background-repeat: no-repeat;
	background-position: center left;
	padding:5em 0;
	letter-spacing: 0.01em;
	z-index: 0;
    position: sticky;
    bottom: 0;
}

.footer .footer-main, .footer .footer-bottom {
	display:grid;
	grid-template-columns: repeat(4,1fr);
}

.footer nav ul {
	list-style:none;
	margin: 0;
	padding: 0;
}

.footer a {
	color:#fff;
}

.footer-tagline {
	font-size:1.2em;
}

.footer .inner.footer-middle {
	margin-top: 50px;
	margin-bottom: 30px;
	display: block !important;
	font-weight:300;
	color:#9AB1BD;
}
.footer-middle-inner {
	max-width: 65%;
}

.footer-bottom {
	font-size:0.95em;
}

.footer-bottom a {
	display: block;
	color:#EDBAA7;
}

.footer h6 {
	color:var(--orange);
	margin-top: 0;
}

.accreditation-numbers { 
	margin-top:2em;
	color:#9AB1BD;
	font-size:0.8em;
}


.has-shadow {
	box-shadow: var(--shadow);
}

/*------------------------------------*\
    PAGES
\*------------------------------------*/
.homepage-stripe {
	background-image: url(img/homepage-stripe-bg.svg);
	background-repeat: no-repeat;
	background-size: contain;
}

.homepage-stripe ul {
	display: grid;
	grid-template-columns: repeat(2,1fr);
	grid-gap: 2em;
	list-style:none;
	padding: 0;
}

.homepage-stripe ul li {
	padding-left:32px;
	position: relative;
	font-family: 'ff-meta-web-pro', sans-serif;
	font-weight:normal;
	display: flex;
	align-items: center;
}

.homepage-stripe ul li:before {
	display: block;
	height:25px;
	width:25px;
	content:'';
	background-image: url(img/tick.svg);
	background-size: contain;
	position: absolute;
	left:0;
	top:50%;
	transform: translateY(-50%);
}

.homepage-heat-pump {
	background-image: url(img/homepage-heat-pump.webp);
	background-size: contain;
	background-repeat: no-repeat;
}

.has-hero-slider {
	margin-top:100vh;
	background: #fff;
	z-index:3;
	position: relative;
}

.faq-accordion-container {
	width:60%;
	margin:0 auto;
}
/*------------------------------------*\
    GRAVITY FORMS
\*------------------------------------*/
.gform_button {
    position: relative;
    text-transform: uppercase;
    box-sizing: border-box;
    display:table;
    font-size: 0.8em;
    font-family: 'ff-meta-web-pro', sans-serif;
    letter-spacing: 0.2em;
    border:none;
    background-color: #D25524;
    padding-right: .5em;
    color:#fff;
    padding:0.8em 3.5em;
    display:block;
    text-decoration: none;
    font-weight: 300;
    position: relative;
    z-index: 1;
    letter-spacing: 0.2em;
}

.gform_button svg {
    display: block;
    position: absolute;
    right: 2em;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 30px;
}
.gform_button::before {
    position: absolute;
    background:#FCE4DD;
    content:'';
    z-index:0;
    width:50%;
    height:100%;
    transition:0.3s all;
}
.gform_button:hover::before {
    width:100%;
}
.gform_button #arrow-shaft {
    opacity: 1;
    transition: 0.3s all;
}
.gform_button:hover #arrow-shaft {
    opacity: 0;
}

.gform_button .st0{fill:none;stroke:#0f232e; stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}

/* Gutenberg stuff */

.wp-block-table thead {
	border-bottom: 2px solid #E3E9EC;
	text-align-last: left;
}
.wp-block-table.is-style-stripes td, .wp-block-table.is-style-stripes th {
	font-family: var(--ivyStyle);
	font-weight: 400;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: #ECF0F3;
}


/*------------------------------------*\
	TYPOGRAPHY
\*------------------------------------*/

/* Adobe fonts. See readme for weights */

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

@media only screen and (min-width:961px) {
	.nav {
		display:block !important;
	}
	.mobile-only {
		display: none;
	}
}
@media only screen and (max-width: 1280px) {
	.nav {
		width:80%;
		margin-left: 0;
	}
	.header-phone {
		display: none;
	}
}
@media only screen and (max-width:1024px) {
	.footer {
		background-image: url(img/mobile-footer-bg.svg);
	}
	.footer-logos .inner-narrow {
		width:60%;
	}
	.footer .inner {
		grid-template-columns: repeat(3,1fr);
		grid-row-gap:3em;
	}
	
	.header-phone {
		font-size: 0.8em;
	}
}
@media only screen and (max-width:960px) {
	h1 {
		font-size: 3.2em;
	}
	.header {
		z-index:4;
		transition:1s all;
	}
	.scrolled .header {
		background-color: #0f232e;
	}
	.header .inner {
		border-bottom:0;
	}
	.hide-mobile {
		display: block;
	}
	.mobile-visibility-none {
		visibility: hidden;
	}
	.mobile-only {

	}

	.mobile-left {
		float:left;
	}

	.mobile-pad {
		padding:0 7.5%;
	}

	.logo {
		max-width:50%;
	}

/*	.header-phone, */
	.nav {
		display: none
	}

	.nav-button {
		display: flex;
		align-items: flex-end;
		justify-content: center;
		flex-direction: column;
		position: absolute;
		right:7.5%;
		top:20px;
		height:50px;
		width:50px;
		cursor: pointer;
	}
	.nav-button span {
		display: block;
		background-color: #fff;
		margin-top:5px;
		width:40px;
		height:3px;
		transition: 0.3s all;
	}
	.nav-open {
	}
	.nav-open span {
		margin-top:0;
		width:25px;
	}
	.nav-open span:nth-of-type(1) {
		transform: rotate(45deg) translateY(100%);
	}
	.nav-open span:nth-of-type(2) {
		opacity:0;
	}
	.nav-open span:nth-of-type(3) {
		transform: rotate(-45deg) translateY(-100%);
		margin-top:-1px;
	}

	.nav {
		position: fixed;
		left:0;
		top:0;
		width:100%;
		height:100vh;
		margin:0;
		padding:0;
		background-color: #D25524;
		font-size:2em;
	}
	.nav ul {
		justify-content: center;
		height:100%;
		display: flex;
		flex-direction: column;
	}
	.nav ul li {
		margin:0.5em 0;
	}

	.nav ul li a:hover {
		color:#fff;
		opacity:0.5;
	}
	.nav ul li.current_page_item a {
		color:#fff;
		font-weight: 500;
	}

	.header-phone-intro {
		color:#fff;
	}
	.slideCount {
		display: none;
	}

	.homepage-stripe {
		 background-size: cover;
	}

	.faq-accordion-container {
		width:85%;
	}
	.footer-logos .inner-narrow {
		width:50%;
		display: block;
		text-align: center;
	}
	.footer-logos img {
		margin:0 auto;
	}
	.footer {
		position: relative;
		z-index:2;
/*		background-image: none;*/
	}
	.footer .inner {
		grid-template-columns: 1fr;
		grid-gap: 2em
	}
	.footer-middle {
		margin-bottom: 0;
	}
	.footer-middle-inner {
		max-width: 100%;
	}
	.header-phone {
		display: block;
	}

}
@media only screen and (-webkit-min-device-pixel-ratio:1.5),
	   only screen and (min-resolution:144dpi) {

}

/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
	background:#D15424;
	color:#FFF;
	text-shadow:none;
}
::-webkit-selection {
	background:#D15424;
	color:#FFF;
	text-shadow:none;
}
::-moz-selection {
	background:#D15424;
	color:#FFF;
	text-shadow:none;
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.alignnone {
	margin:5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
	display:block;
	margin:5px auto 5px auto;
}
.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
a img.alignnone {
	margin:5px 20px 20px 0;
}
a img.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.aligncenter {
	display:block;
	margin-left:auto;
	margin-right:auto;
}
.wp-caption {
	background:#FFF;
	border:1px solid #F0F0F0;
	max-width:96%;
	padding:5px 3px 10px;
	text-align:center;
}
.wp-caption.alignnone {
	margin:5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin:5px 20px 20px 0;
}
.wp-caption.alignright {
	margin:5px 0 20px 20px;
}
.wp-caption img {
	border:0 none;
	height:auto;
	margin:0;
	max-width:98.5%;
	padding:0;
	width:auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
	font-size:11px;
	line-height:17px;
	margin:0;
	padding:0 4px 5px;
}
.sticky {

}
.bypostauthor {

}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
	* {
		background:transparent !important;
		color:#000 !important;
		box-shadow:none !important;
		text-shadow:none !important;
	}
	a,
	a:visited {
		text-decoration:underline;
	}
	a[href]:after {
		content:" (" attr(href) ")";
	}
	abbr[title]:after {
		content:" (" attr(title) ")";
	}
	.ir a:after,
	a[href^="javascript:"]:after,
	a[href^="#"]:after {
		content:"";
	}
	pre,blockquote {
		border:1px solid #999;
		page-break-inside:avoid;
	}
	thead {
		display:table-header-group;
	}
	tr,img {
		page-break-inside:avoid;
	}
	img {
		max-width:100% !important;
	}
	@page {
		margin:0.5cm;
	}
	p,
	h2,
	h3 {
		orphans:3;
		widows:3;
	}
	h2,
	h3 {
		page-break-after:avoid;
	}
}
