/* ------------------------------------
	www.cyldegrove.com
 * ------------------------------------ */

/* Base
 * ------------------------------------ */

body {
    color: #666;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    text-rendering: auto;
}

html, body {
    height: 100%;
}

.container {
	max-width: 1440px;
}

ul.row {
	margin: 0;
	padding: 0;
	list-style: none;
}

a {
	color: #3B5998;
}

hr {
	margin: 40px 0;
	border-color: #ccc;
}


/* Typography
 * ------------------------------------ */

h1, h2, h3 {
	font-weight: 700;
	line-height: 1.2;
	color: #3B5998;
}

h2 {
	font-size: 20px;
}

.panel h2 {
	margin: 0 0 20px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: white;
}

@media screen and (min-width: 992px) {
	h2 {
		font-size: 24px;
		line-height: 30px;
	}

	.panel h2 {
		letter-spacing: 8px;
	}
}


/* Helpers
 * ------------------------------------ */

.mt0 {
	margin-top: 0 !important;
}

.mb0 {
	margin-bottom: 0 !important;
}

.mt-20 {
	margin-top: 20px;
}

@media screen and (min-width: 768px) {
	.text-right-s {
		text-align: right;
	}
}


/* Header
 * ------------------------------------ */

.site-header {
	padding: 20px;
	background-color: #f7f7f7;
}

	// .site-header .container {
	// 	max-width: 992px;
	// }

.brand-logo {
	display: block;
	width: 280px;
	height: 60px;
	background-image: url(libs/images/clydegrove-group-logo.png);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

@media screen and (min-width: 768px) {
	.brand-logo {
		float: left;
		height: 80px;
		margin-top: 4px;
	}
}

@media screen and (min-width: 768px) and (max-width: 991px) {
	.brand-logo {
		margin-top: 16px;
	}
}	

@media screen and (min-width: 992px) {
	.brand-logo {
		width: 374px;
		height: 105px;
		margin-top: 4px;
	}
}

.header-contact {
	text-align: center;
}

.header-contact a {
	color: #848789;
	text-decoration: none;
	-webkit-transition: color 0.3s linear;
	transition: color 0.3s linear;
}

.header-contact p {
	margin: 0;
	line-height: 21px;
}

@media screen and (min-width: 768px) {
	.header-contact {
		float: right;
		text-align: right;
	}

	.header-contact a:hover {
		color: #333;
		text-decoration: underline;
	}
}


/* Navigation
 * ------------------------------------ */

nav {
	display: block;
	margin: 16px auto;
	text-align: center;
}

nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

	nav li {
		display: inline-block;
	}

	nav li + li {
		margin-left: 32px;
	}

nav a {
	position: relative;
	display: block;
	padding-bottom: 6px;
	color: #4d4959;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 3px;
	-webkit-transition: color 0.3s linear;
	transition: color 0.3s linear;
}

	nav .current {
		color: #3B5998;
	}

	nav .current:after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 4px;
		background-color: #008744;
	}

@media screen and (min-width: 768px) {
	nav {
		float: left;
		margin: 40px 0 0 60px;
		text-align: left;
	}

	nav a:hover{
		color: #9d9d9d;
	}
}

@media screen and (min-width: 768px) and (max-width: 991px) {
	nav li {
		display: block;
	}

	nav li + li {
		margin-left: 0;
		margin-top: 10px;
	}
}

@media screen and (min-width: 992px) {
	nav {
		margin: 86px 0 0 80px;
	}
}


/* Side bar nav */

.site-nav a {
	display: block;
	color: #3B5998;
	text-decoration: none;
}

.site-nav-list {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

@media screen and (max-width: 767px) {

	.site-nav {
	    position: relative;
	}

	.site-nav.active .site-nav-trigger:after {
	    border-width: 0 6px 6px;
	}

	.site-nav.active .site-nav-list {
	    opacity: 1;
	    pointer-events: auto;
	}

	.site-nav a {
	    display: block;
	    padding: 0.5em;
	}

	.site-nav a:not(.selected) {
	    color: #3B5998;
	}

	.site-nav a.selected {
	    color: white;
	    background-color: #3B5998;
	}

	.site-nav-trigger {
	    position: relative;
	    display: block;
	    margin: 0;
	    padding: 0.75em;
	    border: 1px solid #ccc;
	    border-left: 5px solid #ccc;
	    color: #3B5998;
	    font-size: 1em;
	    cursor: pointer;
	}

	.site-nav-trigger:after {
	    content: "";
	    position: absolute;
	    border-color: #ccc transparent;
	    border-style: solid;
	    border-width: 6px 6px 0;
	    height: 0;
	    width: 0;
	    margin-top: -3px;
	    right: 16px;
	    top: 50%;
	}

	.site-nav-list {
	    position: absolute;
	    margin: 0;
	    padding: 10px;
	    right: 0;
	    top: 100%;
	    left: 0;
	    background: white;
	    border: 1px solid #ccc;
	    border-top: none;
	    list-style: none;
	    opacity: 0;
	    pointer-events: none;
	    -webkit-transition: all 0.3s ease-out 0s;
	    transition: all 0.3s ease-out 0s;
	    z-index: 10;
	}

}

@media screen and (min-width: 768px) {

	.site-nav-trigger {
		display: none;
	}

	.site-nav {
	    margin: 20px 0 0 20px;
	}

	.site-nav-list li {
		border-top: 1px solid #ccc;
	}

	.site-nav-list li:last-of-type {
		border-bottom: 1px solid #ccc;
	}

	.site-nav a {
		padding: 18px 16px 18px 26px;
		background-image: url(libs/svg/right-arrow.svg);
		background-repeat: no-repeat;
		background-position: 4px center;
		transition: padding 0.3s ease-in-out, background-position 0.3s ease-in-out;
	}

	.site-nav a:hover {
		padding-left: 36px;
		background-position: 14px center;
		color: #0057e7;
	}

	.site-nav .current {
		padding-left: 36px;
		background-position: 14px center;
		font-weight: 700;
		color: #008744;
	}
}


/* Main content
 * ------------------------------------ */

.main-content {
	margin-top: 8px;
}

.main-content.pad {
	padding-top: 16px;
	padding-bottom: 16px;
}

.map {
	padding: 0 10px;
}

@media screen and (min-width: 768px) {
	.main-content.pad {
		padding-top: 32px;
		padding-bottom: 32px;
	}

	.inner-content {
		padding: 0 30px;
	}

	.map {
		padding: 0;
	}
}

@media screen and (min-width: 992px) {
	.inner-content {
		padding: 0 60px 0 0;
	}
}


/* Panels
 * ------------------------------------ */

.panel {
	position: relative;
	margin: 8px;
	padding: 80px 20px;
	text-align: center;
}

@media screen and (min-width: 768px) {
	.panel {
		height: 250px;
	}
}

@media screen and (min-width: 992px) {
	.panel {
		height: 400px;
	}
}

.panel__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

	.panel__bg:after {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0,0,0,0.3);
		-webkit-transition: background-color 0.3s ease-in-out;
		transition: background-color 0.3s ease-in-out;
	}

	.panel__link:hover + .panel__bg:after {
		background-color: rgba(0,0,0,0.6);
	}

	.accountancy {
		background-image: url(libs/images/accountancy.jpg);
	}

	.estate-agents {
		background-image: url(libs/images/estate-agents.jpg);
	}

	.pensions {
		background-image: url(libs/images/pensions.jpg);
	}

	.mortgages {
		background-image: url(libs/images/mortgages.jpg);
	}

	.life-insurance {
		background-image: url(libs/images/life-insurance.jpg);
	}

	.additional-services {
		background-image: url(libs/images/additional-services.jpg);
	}

	.general-insurance {
		background-image: url(libs/images/general-insurance.jpg);
	}

	.block-blue {
		background-color: #3B5998;
	}

.panel__content {
	position: relative;
	display: table;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.panel__content.white {
	color: white;
}


	@media screen and (min-width: 768px) {
		.panel__content {
			display: table;
			width: 100%;
			height: 100%;
		}
	}

.panel__inner {
	display: table-cell;
	vertical-align: middle;
	height: 100%;
	width: 100%;
}

.panel__content.white .panel__inner {
	padding-left: 1.5em;
	padding-right: 1.5em;
}

	/*@media screen and (min-width: 768px) {
		.panel__inner {
			display: table-cell;
			vertical-align: middle;
			height: 100%;
			width: 100%;
		}
	}*/

.panel__link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	text-decoration: none;
}

.panel__children {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 24px;
	padding: 24px;
	background-color: rgba(0,0,0,0.9);
	opacity: 0;
	-webkit: transition: opacity 0.35s ease;
	transition: opacity 0.35s ease;
	color: white;
	font-weight: 700;
	z-index: -1;
	pointer-events: none;
}

@media screen and (min-width: 768px) {
	.panel__children {
		font-size: 18px;
		line-height: 30px;
	}
}

.section {
	position: relative;
	-webkit-transition: margin 0.3s ease-in-out;
	transition: margin 0.3s ease-in-out;
}

@media screen and (min-width: 992px) {
	.panel__children {
		pointer-events: auto;
	}

	.panel__link:hover .section {
		margin-top: -32px;
	}

	.panel__link:hover .panel__children {
		opacity: 1;
		z-index: 1;
	}

	.panel__link:hover .panel__bg:after {
		background-color: rgba(0,0,0,0.6);
	}
}

/* Buttons
 * ------------------------------------ */

.btn {
	position: relative;
	display: inline-block;
	margin: 0;
	padding: 12px 20px;
	background-color: white;
	border-radius: 12px;
	-webkit-box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.4);
	box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.4);
	text-transform: uppercase;
	color: black;
	text-decoration: none;
	font-weight: 700;
}


/* Social
 * ------------------------------------ */

.social {
	margin: 0;
	padding: 0;
	list-style: none;
}

.social li {
	display: inline-block;
}

.social a {
	display: block;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-position: center;
	background-repeat: no-repeat;
	-webkit-transition: opacity 0.3s linear;
	transition: opacity 0.3s linear;
}

.social a.linkedin {
	background-color: #1582aa;
	background-image: url(libs/svg/linkedin-logo.svg);
}

.social a.facebook {
	background-color: #537bbd;
	background-image: url(libs/svg/facebook-logo.svg);
}

.site-footer .social {
	margin: 20px auto 0;
	text-align: center;
}

@media screen and (min-width: 768px) {
	.social a:hover {
		opacity: 0.8;
	}

	.site-footer .social {
		margin: 20px auto;
	}
}

/* Footer
 * ------------------------------------ */

.site-footer {
	padding: 16px 8px;
	border-top: 1px solid #ccc;
	text-align: center;
}

.site-footer a {
	color: #848789;
	text-decoration: none;
	-webkit-transition: color 0.3s linear;
	transition: color 0.3s linear;
}

@media screen and (min-width: 768px) {
	.site-footer {
		text-align: left;
	}

	.site-footer p a:hover {
		color: #333;
		text-decoration: underline;
	}
}
