/*
	Template #1 "Bars and Stripes"
	---------------------
	Flat-design layout with a large top logo
	/menu, rotating hero image, and flipping 
	card buckets. Can add a dropdown easily.

	Layout colors
	---------------------
	red: #8A0617
	light blue: #ACCFCC
	light gray: #B8AE9C
	dark gray: #595241
*/

body {
	margin: 0;
	font-size: 1rem;
	font-family: Arial, Verdana, Geneva, sans-serif;
	background: url("../images/bg.jpg") repeat-x;
	background-position: 0 304px;
	background-color: #B8AD9B;
}

a {
	-o-transition: color 0.3s linear;
	-moz-transition: color 0.3s linear;
	-khtml-transition: color 0.3s linear;
	-webkit-transition: color 0.3s linear;
	-ms-transition: color 0.3s linear;
	transition: color 0.3s linear;
	color: #ACCECC;
	text-decoration: none;
}

a:hover {
	color: #8A0617;
}

h1 {
	font-size: 1.8rem;
	padding: 0;
	margin: 0;
}

h2 {
	font-size: 1.5rem;
}

img {
	max-width: 100%;
	height: auto;
}

p {
	padding: 10px 0;
}

.social-drawer {
	position: fixed;
	border-right: none;
	top: 142px;
	right: 0px;
	display: none;
}

.social-drawer a {
	color: #8A0617;
	background-color: #FFF;
	display: block;
	width: 40px;
	height: 40px;
	display: block;
	text-align: center;
	line-height: 40px;
	font-size: 1.4rem;
}

.social-drawer a:hover {
	color: #FFF;
	background-color: #ACCFCC;
}

.social-drawer a:last-of-type {
	padding-bottom: 0;
}

.top-wrapper {
	background-color: #fff;
	height: 102px;
	padding-top: 20px;
	border-bottom: 2px solid #ACCECC;
}

.top {
	margin: 0 auto;
	width: 90%;
	max-width: 1000px;

}

.logo {
	background: url("../images/logo.png") top left no-repeat;
	height: 58px;
	width: 40%;
}

.title, .subtitle {
	padding-left: 110px;
}

.title {
	font-size: 1.5rem;
	font-weight: bold;
	color: #8A0917;
	padding-top: 5px;
	padding-bottom: 3px;
}

.subtitle {
	font-size: 1.15rem;
}

.top-right {
	float: right;
	width: 60%;
}

.top-phone {
	float: right;
	font-size: 1.3rem;
	font-weight: bold;
	color: #B8AC9A;
}

.fa-phone {
	-webkit-transform:rotateY(180deg) !important;
	-moz-transform:rotateY(180deg) !important;
	-o-transform:rotateY(180deg) !important;
	-ms-transform:rotateY(180deg) !important;
	transform: rotateY(180deg) !important;
}

.main-menu {
	text-align: right;
	display: none;
}

.main-menu ul {
	list-style-type: none;
	margin: 0;
	padding: 36px 0 0 0;
	font-size: 1.2rem;
	font-weight: bold;
}

.main-menu li {
	display: inline;
	padding-right: 3%;
	position: relative;
}

.main-menu ul li:hover a {
	color: #8A0617;
}

.main-menu li:last-of-type {
	padding-right: 0;
}

.menu-trigger:hover > .dropdown {
    visibility: visible;
    opacity: 1;
    top: 46px;
}


/* dropdown menu css */
.dropdown {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 20px;
    width: 200%;
    margin-left: -35%;
    z-index: 999;
    border-top: 2px solid #ACCFCC;
    -o-transition: all 0.4s ease-in-out;
	-moz-transition: all 0.4s ease-in-out;
	-khtml-transition: all 0.4s ease-in-out;
	-webkit-transition: all 0.4s ease-in-out;
	-ms-transition: all 0.4s ease-in-out;
	transition: all 0.4s ease-in-out;
    transition-delay: 0.05s;
}
 
.dropdown ul {
    font-size: 1.2rem;
    background-color: rgba(137,9,22, 0.93);
    padding: 15px;
    text-align: left;
    min-height: 200px;
    padding-top: 20px;
}
 
     
.dropdown li {
    width: 100%;
    display: block;
    margin: 0;
    padding-bottom: 10px;
     
}

.dropdown a {
	color: #ACCFCC !important;
}

.dropdown a:hover {
	color: #FFF !important;
}

.dropdown2 {
	left: -20%;
}


.hamburger {
	position: absolute;
	top: 55px;
	right: 6%;
	font-size: 1.6rem;
}

 
/* Main content area */
.wrapper {
	margin: 0 auto;
	width: 90%;
	max-width: 1000px;
}

.hero {
	height: 502px;
	color: #8A0617;
	margin-top: 40px;
	overflow: hidden;
}

.hero-text {
	margin: 0 auto;
	width: 80%;

}

.hero-text h1 {
	text-align: center;
}

.hero-text p {
	margin: 10px 0 10px 0;
	font-size: 1.1rem;
}

.buckets {
	margin: 0 auto;
	padding-top: 40px;
}

.buckets div {
	text-align: center;
	height: 215px;
}

.buckets .col-4 {
	margin-left: 20px;
}

.buckets .col-4:first-of-type {
	margin-left: 22px;
}

.buckets h2 {
	color: #8A0617;
}

.front h2 {
	margin-top: 180px;
}

.back {
	background-color: #B8AE9C;
}

.back h2 {
	font-size: 5rem;
	margin-bottom: 1px;
	margin-top: 40px;
}

.back p {
	padding: 0 10px;
}

a .back p, a:hover .back p {
	color: #8A0617;
}

.bucket-family {
	background: url("../images/bucket-family.jpg") top center no-repeat;
}

.bucket-cosmetic {
	background: url("../images/bucket-cosmetic.jpg") top center no-repeat;
}

.bucket-orthodontics {
	background: url("../images/bucket-orthodontics.jpg") top center no-repeat;
}

.content {
	background-color: #fff;
	margin-top: 60px;
	padding: 30px 40px 40px 40px;
	color: #8A0617;
	max-width: 1000px;
	z-index: 3;
	position: relative;
	line-height: 1.4rem;
}

.content h1 {
	padding-bottom: 30px;
	text-align: center;
}

.content-left {
	float: left;
	width: 30%;
}

.memberships {
	text-align: center;
	border: 1px solid #B8AE9C;
	width: 275px;
	margin-top: 30px;
}

.memberships img {
	margin-bottom: 20px;
}

.memberships h2 {
	padding: 25px 0;
}

.content-right {
	float: right;
	width: 66%;
}

.content-right p {
	font-size: 1.1rem;
}

.content-right p:first-of-type {
	margin-top: 0;
}

.footer-wrapper {
	border-top: 2px solid #ACCFCC;
	background-color: #595241;
	position: relative;
	margin-top: -50px;
	padding-top: 70px;
	z-index: 0;
}

.footer {
	margin: 0 auto;
	max-width: 920px;
	color: #FFF;
}

.footer a {
	color: #FFF;
}

.footer a:hover {
	color: #B8AE9C;
}

.footer div {
	float: left;
}

.footer h3 {
	color: #ACCFCC;
}

.footer ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.footer li {
	padding-bottom: 10px;
}

.footer h3 {
	padding: 20px 0;
}

.testimonials {
	padding-right: 55px;
}

.quote-box {
	position: relative;
	padding: 15px;
	background: #595241;
	border: #B8AE9C solid 2px;
	font-size: 1.1rem;
	line-height: 1.5rem;
}

/* triangle on bottom of quote box */
.quote-box:after {
	content: '';
	position: absolute;
	border-style: solid;
	border-width: 18px 15px 0;
	border-color: #595241 transparent;
	display: block;
	width: 0;
	z-index: 1;
	margin-left: -15px;
	bottom: -18px;
	left: 21%;
}

.quote-box:before {
	content: '';
	position: absolute;
	border-style: solid;
	border-width: 19px 16px 0;
	border-color: #B8AE9C transparent;
	display: block;
	width: 0;
	z-index: 0;
	margin-left: -16px;
	bottom: -21px;
	left: 21%;
}

.quote-author {
	font-size: 1.25rem;
	font-weight: bold;
	padding-top: 25px;
	padding-left: 15px;
}

.copyright {
	text-align: center;
	padding: 30px 0;
	color: #B8AE9C;
}



/* flipping card css for buckets */
.flip-container {
	-webkit-perspective: 1000;
	-moz-perspective: 1000;
	-ms-perspective: 1000;
	perspective: 1000;
}

.flip-container:hover .flipper, .flip-container.hover .flipper {
	-webkit-transform: rotateY(180deg);
	-moz-transform: rotateY(180deg);
	-ms-transform: rotateY(180deg);
	transform: rotateY(180deg);
	filter: FlipH;
	-ms-filter: "FlipH";
}

.flip-container, .front, .back {
	width: 303px;
	height: 215px;
}

.flipper {
	-webkit-transition: 0.6s;
	-webkit-transform-style: preserve-3d;
	-ms-transition: 0.6s;
	-moz-transition: 0.6s;
	-moz-transform: perspective(1000px);
	-moz-transform-style: preserve-3d;
	-ms-transform-style: preserve-3d;
	transition: 0.6s;
	transform-style: preserve-3d;
	position: relative;
}

.front, .back {
	backface-visibility: hidden;
	position: absolute;
	top: 0;
	left: 0;
}

.front {
	z-index: 2;
	transform: rotateY(0deg);
}

.back {
	transform: rotateY(180deg);
}




/* mobile menu re-styling */

.mm-menu {
	background: #FFF !important;
	border: none !important;
	color: #000;
}

.mm-menu:before {
    content: "";
    position: fixed;
    display: inline-block;
    top: 100px;
    left: 0;
    width: 2px;
    height: 100%;
    border-left: 2px solid #ACCECC;
    z-index: 1000000000;
}

.mm-menu.mm-pageshadow:after {
    box-shadow: none !important;
}

.mm-navbar {
	text-align: center;
	border: none;
}

.mm-navbar a {
	border: none !important;
	color: #ACCECC !important;
	font-size: 1.4rem !important;
	line-height: 40px;
	padding: 0;
}
.mm-navbar a:hover {
	color: #8A0917 !important;
}

.mm-next {
	border-color: #ACCECC !important;
}

.mm-menu .mm-listview > li .mm-next:after, .mm-menu .mm-listview > li .mm-arrow:after {
    border-color: #ACCECC !important;;
}

.mm-listview a {
	padding-top: 20px !important;
	padding-bottom: 20px !important;
	font-size: 1.2rem;
	color: #8A0917 !important;
}

.mm-listview > li:not(.mm-divider):after {
	border-bottom-color: #ACCECC;
}

.mm-close:after { 
	content: '\f00d';
	font-family: 'FontAwesome';
}
