@charset "UTF-8";

/* Defaults */
html {
	height: 100%;
  }
body {
	margin: 0;
    font-family: 'Oswald', sans-serif;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; /*stops txt fade after slider in webkit*/

	min-height: 100%;
    position: relative;
    padding-bottom: 80px;
}
main {
	background: white;
}
section {
	background: white;
	padding-bottom: 30px;
}
h1, h2, h5, h6 {
    font-family: 'Oswald', sans-serif;
	color: #181B1C;
	text-rendering: optimizeLegibility;
}
h2 {
	font-size: 2.3125rem;
	line-height: 1.4;
	margin-top: 0.2rem;
	margin-bottom: 0.5rem;
	font-style: normal;
	font-weight: normal;
	cursor: auto;
}
h3, h4 {
	font-family: 'Oswald', sans-serif;
	font-size: 1.4375rem;
	line-height: 1.4;
	color: #222222;
	text-rendering: optimizeLegibility;
	margin-top: 0.2rem;
	margin-bottom: 0.5rem;
}
h3 {
	padding:1em 0 0.6em 0;
}
h4.subheader {
	font-weight:300;
}
p {
	font-family: 'Raleway', sans-serif;
	font-style: normal;
	font-weight: normal;
	font-size: 1rem;
	line-height: 1.6;
	color: #222222;
	text-rendering: optimizeLegibility;
	margin-bottom: 1.25rem;
	cursor: auto;
}
a { color:#fa9619; }
a:hover { color:#1c768f; }
ul {
	font-family: 'Raleway', sans-serif;
}


/* Default Borders */
.break-line {
	padding: 0px 30px 0px 30px;
}
.simple-orange-border-bottom {
	border-bottom: 1px solid #fa9619;
}
.orange-border-bottom {
	padding: 0.8em 0;
	border-bottom: 1px solid #fa9619;
	color:#5E6568;
}
.orange-border-top {
	margin-top: 20px;
	padding: 0.8em 0;
	border-top: 1px solid #fa9619;
	color:#5E6568;
}
.grey-border-bottom {
	padding: 0.8em 0;
	border-bottom: 1px solid #5E6568;
	color:#5E6568;
}
.grey-border-top {
	border-top: 1px solid #5E6568;
}


/* Default Colours */
.background-logo-blue { background-color: #006A92; }
.background-blue { background-color: #1c768f; }
.background-navy { background-color: #032539; }
.background-white { background-color: #faf2ed; }
.background-orange { background-color: #fa9619; }
.background-grey { background-color: #9E9F9E; }
.background-dark-grey { background-color: #333333; }
.background-black { background-color: #181B1C; }
.text-blue { color: #006A92; text-decoration: none; }
.text-dark-blue { color: #005F7D; text-decoration: none;}
.text-orange { color: #fa9619; text-decoration: none; }
.text-white { color:#fff; text-decoration: none; }


/* Visibility */
.hide { display: none; }


/* Header */
header {
	text-align: center;
	vertical-align: middle;
	min-height: 50px;
	padding-top: 30px;
	padding-bottom: 30px;
	display: grid;
  	grid-template-columns:
		1fr
		min(120ch, 100%)
		1fr;
}
header > * {
	grid-column: 2;
}
header img {
	margin: 0 auto;
	text-align: center;
	max-width: 100%;
	height: auto;
}


/* Nav */
nav {
	display: grid;
  	grid-template-columns:
		1fr
		min(120ch, 100%)
		1fr;
}
nav > * {
	grid-column: 2;
}


/* Desktop Nav */
.desktop-nav {
	padding: 10px 30px 10px 30px;
	font-family: 'Oswald', sans-serif;
    font-size: 1.4em;
	font-weight: 500;
}
.desktop-nav a:hover {
	color:#faf2ed
}


/* Mobile Nav */
.mobile-nav a {
	font-family: 'Raleway', sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: white;
	text-decoration: none;
}
.hamburger {
	max-height: 20px;
}
.mobile-nav-menu input {
	display: none;
}
.mobile-nav-menu label {
	display: flex;
	justify-content: right;
	padding: 0 40px 0 0px;
	font-family: 'Raleway', sans-serif;
	font-size: 1rem;
	color: white;
}
.mobile-nav-menu label:hover {
	cursor: pointer;
}
.mobile-nav li {
	list-style-type: none;
	padding: 5px;
	display: grid;
 	transition-duration: 0.5s;
}
.mobile-nav li:hover {
	cursor: pointer;
}
.mobile-nav ul li ul {
	visibility: hidden;
	opacity: 0;
	transition: all 0.5s ease;
	margin-top: 1rem;
	display: none;
}
.mobile-nav-menu input:checked ~ ul {
	visibility: visible;
	opacity: 1;
	display: grid;
}
.mobile-nav-selection {
	margin-right: 40px;
	margin-left: 0px;
	padding-left: 0;
	text-align: left;
}
.mobile-nav-selection li:hover {
	background-color: #fa9619;
}


/* Nav Cards */
.nav-cards {
	padding: 10px;
	padding-top: 50px;
}
.nav-card .nav-card-img {
	margin: 0 auto;
	text-align: center;
	height: 200px;
	max-width: 200px;
	padding-bottom: 0px;
	border-radius: 8px;
	background-position: 50% 50%;
	background-size: cover;
}
.nav-card .nav-card-1 { background-image: url("../img/nav-cards/print-test-2.png"); }
.nav-card .nav-card-2 { background-image: url("../img/nav-cards/design-test.png"); }
.nav-card .nav-card-3 { background-image: url("../img/nav-cards/mail-test.png"); }


/* Case Studies */
.case-study-title {
	font-family: 'Oswald', sans-serif;
	color: #181B1C;
	text-rendering: optimizeLegibility;
	font-size: 2rem;
	line-height: 1.4;
	margin-top: 0.2rem;
	margin-bottom: 0.5rem;
	font-style: normal;
	font-weight: normal;
	cursor: auto;

	display: flex;
	align-items: center;
}
.case-study-title-img {
	margin-right: 20px;
	text-align: center;
	height: 100px;
	max-width: 100px;
	padding-bottom: 0px;
	border-radius: 8px;
	background-position: 50% 50%;
	background-size: cover;
}
.case-studies {
	padding-bottom: 50px;
}
.case-study .case-study-img {
	margin: 0 auto;
	text-align: center;
	height: 150px;
	max-width: 150px;
	padding-bottom: 0px;
	border-radius: 8px;
	background-position: 50% 50%;
	background-size: cover;

	-webkit-box-shadow: 4px 4px 10px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: 4px 4px 10px 0px rgba(0,0,0,0.75);
	box-shadow: 4px 4px 10px 0px rgba(0,0,0,0.75);
}
.case-study .case-study-img:hover, .case-study-img:focus, .case-study-img:active {
	-webkit-transform: scale(1.1);
	transform: scale(1.1);

	-webkit-box-shadow: 4px 4px 10px 0px #fa9619;
	-moz-box-shadow: 4px 4px 10px 0px #fa9619;
	box-shadow: 4px 4px 10px 0px #fa9619;
}
.case-study .case-study-1 { background-image: url("../img/case-studies/Berkley.jpg"); }
.case-study .case-study-2 { background-image: url("../img/case-studies/Eleanor.jpg"); }
.case-study .case-study-3 { background-image: url("../img/case-studies/Mind.jpg"); }
.case-study .case-study-4 { background-image: url("../img/case-studies/TFT.jpg"); }
.case-study .case-study-5 { background-image: url("../img/case-studies/CF.jpg"); }
.case-study .case-study-6 { background-image: url("../img/case-studies/imjp.png"); }
.case-study .case-study-7 { background-image: url("../img/case-studies/GFA World.jpg"); }
.case-study .case-study-8 { background-image: url("../img/case-studies/Rock UK.jpg"); }


/* Body */
.one-tree-logo img {
	max-width: 250px;
	height: auto;
}
.one-tree-video-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
}
.one-tree-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.responsive-img {
	max-width: 350px;
	height: auto;
	padding-top: 15px;
}
.resources {
	padding-top: 15px;
	padding-bottom: 15px;
}
.resources-button {
	border-radius: 6px;
	padding-top: 0.8rem;
	padding-bottom: 0.8rem;
	padding-right: 1.75rem;
	padding-left: 1.75rem;
	font-size: 0.9rem;
	line-height: 1.6;
	font-family: 'Raleway', sans-serif;
	text-decoration: none;
	color: black;
}
.resources-button:hover {
	color: white;
	cursor: pointer;
	outline: 0;
	transition: background-color 300ms ease-out;
}


/* Footer */
footer {
	/* Fix to bottom */
    position: absolute;
    left: 0 ; right: 0; bottom: 0;
	height: 80px;

	/* Layout */
	padding: 10px 30px 10px 30px;
	color:#FFF;
	text-align: right;
	vertical-align: middle;
	display: grid;
  	grid-template-columns:
		1fr
		min(100ch, 100%)
		1fr;
}
footer > * {
	grid-column: 2;
}
footer h5 {
	margin: 0 0 20px 0;
	color: #fff;
	font-weight: 500;
	font-size: 1.1rem;
}
footer a {
	color: #fff;
	font-weight: 300;
	text-decoration: none;
	line-height: inherit;
	background-color: transparent;
}
footer a:hover {
	color:#fa9619;
	cursor: pointer;
	outline: 0;
}
footer p {
	margin: 20px 0 0;
	color: #FFF;
}


/* CSS Grid */
main {
  display: grid;
  grid-template-columns:
		1fr
		min(120ch, 100%)
		1fr;
}
main > * {
  	grid-column: 2;
}
.full-bleed {
	width: 100%;
	grid-column: 1 / 4;
}
.three-columns {
	display: grid;
	grid-template-columns:
		1fr
		1fr
		1fr;
}
.four-columns {
	padding: 10px;
	display: grid;
	grid-template-columns:
		1fr
		1fr
		1fr
		1fr;
}
.seven-five-columns {
	display: grid;
	grid-template-columns: 7fr 5fr;
}
.col {
	padding: 0px 30px 0px 30px;
	margin: 0;
}
.text-col {
	max-width: 80ch;
}


/* Small */
@media screen and (max-width: 768px) {
	.small {
		display: grid !important;
	}
	.medium-down {
		display: grid !important;
  	}
	.medium {
	  	display: none !important;
	}
	.medium-up {
		display: none !important;
  	}
	.large {
	  	display: none !important;
	}
	.large-up {
	  	display: none !important;
	}
	.seven-five-columns {
		display: grid;
		align-items: center;
		grid-template-columns: 1fr;
	}
	header {
		padding-top: 10px;
		padding-bottom: 10px;
	}
	.nav-cards {
		padding-top: 25px;
	}
	.nav-card .nav-card-img{
		height: 130px;
		max-width: 130px;
	}
	.case-studies {
		padding-top: 25px;
	}
	.case-study .case-study-img{
		height: 90px;
		max-width: 90px;
	}
	body {
		padding-bottom: 120px;
	}
	footer {
		text-align: center;
		height: 120px;
	}
}

/* Medium */
	@media screen and (min-width: 769px) and (max-width: 850px) {
	.small {
		display: none !important;
	}
	.medium-down {
		display: grid !important;
  	}
	.medium {
	  	display: grid !important;
	}
	.medium-up {
		display: grid !important;
  	}
	.large {
	  	display: none !important;
	}
	.large-up {
	  	display: none !important;
	}
}

/* Large */
@media screen and (min-width: 851px) {
	.small {
		display: none !important;
	}
	.medium-down {
		display: none !important;
  	}
	.medium {
	  	display: none !important;
	}
	.medium-up {
		display: grid !important;
  	}
	.large {
	  	display: grid !important;
	}
	.large-up {
	  	display: grid !important;
	}
}
