/* Services Panel */
.services-panel {
	background-image: url(/images/services_bg.jpg);
	background-size: contain;
	background-repeat: no-repeat;
}

.services-panel .main {
	-webkit-justify-content: space-between;
	-ms-flex-pack: justify;
	justify-content: space-between;
}

.services-panel .practice-areas {
	width: 40%;
}

.services-panel .services-content {
	width: 60%;
	background-color: rgba(255,255,255,0.949); /* alpha($white,95%) */
	padding: 5em 5%;
}

.services-panel .services-content > * {
	max-width: 29.75em;
	margin-left: auto;
	margin-right: auto;
}

.services-panel .content-panel {
	padding-left: 5em;
	position: relative;
}

.services-panel .content-panel:before {
	content: '';
	display: block;
	width: 4em;
	height: 1px;
	background-color: #AB123E; /* $primary */
	position: absolute;
	left: 0;
	top: .75em;
}

.services-panel .content-panel .btn {
	margin-top: 2em;
}

.services-panel ul.flex {
	-webkit-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-justify-content: space-between;
	-ms-flex-pack: justify;
	justify-content: space-between;
	margin-bottom: -3%;
}

.services-panel ul.flex li {
	width: 48.5%;
}

.services-panel ul.flex li a {
	display: block;
	position: relative;
	width: 100%;
	padding: 42.7% 0;
	margin-bottom: 6%;
}

.services-panel ul.flex li a .inner {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
	padding: 0 5%;
	background-color: rgba(44,44,46,0.8); /* alpha($dark,80%) */
	transition: background-color .5s ease;
}

.services-panel ul.flex li a:hover .inner {
	background-color: rgba(255,255,255,0.8);
}

.services-panel ul.flex li a .inner:before {
	content: '';
	display: block;
	width: 0;
	height: 0;
	left: 50%;
	bottom: 0;
	transition: border-width .05s linear 1.1s, width .3s linear .8s, left .3s linear .8s, height .6s ease .2s, border-top-color .2s ease 0s;
	position: absolute;
	border: 0 solid #AB123E; /* $primary */
	border-top-color: transparent;
}

.services-panel ul.flex li a:hover .inner:before {
	width: 100%;
	height: 100%;
	left: 0;
	border-color: #AB123E; /* $primary */
	transition: border-width .05s linear 0s, width .3s linear .05s, left .3s linear .05s, height .6s ease .35s, border-top-color .2s linear .95s;
	border-width: 2px;
	border-top-color: #AB123E; /* $primary */
}

.services-panel ul.flex li a img {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 1;
	transition: .5s ease;
}

.services-panel ul.flex li a .inner p {
	position: relative;
	z-index: 1;
	color: #FFFFFF; /* $white */
	font-size: 1.2em;
	text-align: center;
	line-height: 1.25;
	font-family: 'Marcellus', serif; /* @titlefont */
	transition: color .5s ease;
	max-width: 9em;
}

.services-panel ul.flex li a:hover .inner p {
	color: #AB123E;
}
/* End Services Panel */

/* Responsive Systems @ 1000px */
@media (max-width: 1000px) {
	.services-panel .services-content {
		padding: 2em 3%;
	}
}
/* End Responsive Systems @ 1000px */

/* Responsive Systems @ 800px */
@media (max-width: 800px) {
	.services-panel .main {
		display: block;
	}

	.services-panel .services-content {
		width: 100%;
	}

	.services-panel .practice-areas {
		width: 100%;
	}

	.services-panel ul.flex {
		margin: 1% 0;
	}

	.services-panel ul.flex li {
		width: 32%;
		margin: 1% 0;
	}
}
/* End Responsive Systems @ 800px */

/* Responsive Systems @ 400px */
@media (max-width: 400px) {
	.services-panel .main {
		display: block;
	}

	.services-panel .services-content {
		width: 100%;
		padding: 1em 3%;
	}

	.services-panel .services-content header {
		padding-bottom: 0;
	}

	.services-panel .services-content .content-panel p:last-of-type {
		margin-bottom: 0;
	}

	.services-panel .practice-areas {
		width: 100%;
	}

	.services-panel ul.flex {
		margin: 1% 0;
	}

	.services-panel ul.flex li {
		width: 49%;
		margin: 1% 0;
	}

	.services-panel .content-panel {
		padding-left: 0;
	}

	.services-panel .content-panel:before {
		content: none;
	}
}
/* End Responsive Systems @ 400px */
