/*--------------------
TABLE OF CONTENTS
01. Base Styles
02. Typography/Link Styles
03. Header Styles
04. Navigation Styles
05. Content Styles
06. Footer Styles

/*======================
01. BASE STYLES
========================*/

* {margin:0;}

body {
    font-family: 'Nunito', sans-serif;
    color:#393939;
    background:#fff url('../img/bg.jpg') no-repeat center top;
    background-size: cover;
	background-attachment: fixed;
    font-size: 17px;
}

body.dental-faq {
    background-attachment: fixed;
}

img {max-width:100%;}

.wrapper {
    width:100%;
    z-index:1;
    position:relative;
}

.container {
    width:100%;
    margin:0 auto;
    max-width:1200px;
}

.container:after{
    content: '';
    display: block;
    clear: both;
}

.column {
    float:left;
    margin:0 1%;
}

.grid12 {width:98%;}
.grid11 {width:89.6667%;}
.grid10 {width:81.3333%;}
.grid9 {width:73%;}
.grid8 {width:65%;}
.grid7 {width:56.3333%;}
.grid6 {width:48%;}
.grid5 {width:39.6667%;}
.grid4 {width:31%;}
.grid3 {width:23%;}
.grid2 {width:14.6667%;}
.grid1 {width:6.3333%;}

.clear {clear:both;}

.left{
    text-align: left;
}

.right{
    text-align: right;
}

.border {
    border:2px solid #000000;
}

.alignleft {
    float:left;
    margin-right:15px;
}
.alignright {
    float:right;
    margin-left:15px;
}
.alignmid {
    display:block;
    margin:0 auto;
}
.center {text-align:center;}

blockquote {
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 300;
}

hr {
    border:0;
    height:2px;
    background:#724f63;
    padding:0;
    margin-top:10px;
    margin-bottom:25px;
}

.rounded{
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.half-rounded{
    -webkit-border-radius: 0px 0px 15px 15px;
    -moz-border-radius: 0px 0px 15px 15px;
    border-radius: 0px 0px 15px 15px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.flex{
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    overflow: hidden;
}

.mobile{
    display: none !important;
}

a[href^="tel:"] {
    color: #fff;
    text-decoration: none;
}

/* ====================================== 
Back to Top
====================================== */
.back-to-top{
    background-image: url(../img/back-to-top.png);
    background-repeat: no-repeat;
    background-position: center;
    background-color: #09b9de;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    height: 50px;
    width: 50px;
    text-indent: -9999px; /* Hides text from human view */
    position:fixed;
    bottom:30px;
    right:30px;
    display:none;
    z-index: 999;
    transition: none;
}

/*======================
02. TYPOGRAPHY/LINK STYLES
========================*/

h1, h2, h3, h4, h5 ,h6{
    font-weight: 300;
}

h1{
    font-family: 'Pacifico', cursive;
    color: #fff;
}
h1 {font-size:2.8em;}
h2 {font-size:2em;}
h3 {font-size:1.8em;}
h4 {font-size:1.5em;}
h5 {font-size:1.0em;}
h6 {font-size:0.8em;}

#home h2{
    font-family: 'Pacifico', cursive;
    font-size: 2.8em;
}

a {color:#724f63;transition:0.5s all ease;}

a:hover {color:#333233;}

a.button {
    background:#87c338;
    color:#724f63;
    text-align:center;
    display:inline-block;
    padding:7px 20px;
    text-decoration:none;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 400;
}

a.button:hover {
    background:#333233;
    color:#fff;
}

/*======================
03. HEADER STYLES
========================*/

#menu-logo{
    background: #724f63;
    position: relative;
    margin: 0 10px 20px 10px;
}
#menu-logo ul.main-navigation li{
    display: inline-block;
    margin: 0;
}
#menu-logo ul.main-navigation li:first-child{
    margin: 0;
}
#main-navigation:after{
    clear: both;
    content: '';
    display: block;
}
.main-navigation{
    margin: 0;
}
.main-navigation.first a{
    padding-right: 10px;
}
.main-navigation.last{
    float: right;
}
.main-navigation.last a{
    padding-left: 10px;
}
#logo{
    background: #fff;
    -webkit-box-shadow: 0px 0px 10px #000000;
    -moz-box-shadow: 0px 0px 10px #000000;
    box-shadow: 0px 0px 10px #000000;
    position: relative;
    left: 27px;
    right: 0;
    bottom: 0;
    margin: 0 auto -75px auto;
}
#logo img{
    display: block;
    margin: auto;
    padding: 40px 0 30px 0;
    width: 90%;
    max-height: 210px; /* This forces tall logos to calm down */
    max-width: 230px; /* This forces wide logos to calm down */
}
#top-set{
    margin-top: 30px;
}
#menu-logo .social a{
    color: #fff;
}
#menu-logo .social a:hover{
    color: #333233;
}
#locations{
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}
#locations li{
    margin: 0 0 0 10px;
}
#locations a{
    line-height: normal;
}
#locations a:hover{
    background-color: #87c338;
}
#locations .button{
    background-color: #09b9de;
    color: #fff;
}
#social{
    display: inline-block;
    vertical-align: middle;
}
#social a{
    line-height: normal;
    margin: 0 0 0 10px;
    font-size: 12px;
}
#header{
    overflow: hidden;
    margin: 0 10px;
}
#quick-links{
    background-color: #f46417;
    padding: 0 20px;
    margin: 0 10px;
}
#quick-links .container{
    width: 100%;
}
#quick-links a{
    color: #fff;
    text-transform: none;
    line-height: 5em;
    font-size: 20px;
}
#quick-links a:hover{
    color: #333233;
}
#quick-links li a:after{
    content: "·";
    color: #09b9de;
    font-size: 9em;
    position: absolute;
    right: -24px;
    top: -13px;
}
#quick-links li:last-child a:after{
    content: '';
}

/*======================
04. NAVIGATION STYLES
========================*/

nav {
    position:relative;
    z-index:9999;
    margin:0 auto;
}

nav ul{
    list-style-type:none;
    padding-bottom:0;
    text-align:center;
}

nav li {
    display:inline-block;
    margin:0;
    padding:0;
    position:relative;
}

nav li a {
    display:block;
    text-decoration:none;
    text-transform: uppercase;
    color:#fff;
    font-size:16px;
    transition: none;
    padding:0;
    margin:0;
}

nav li:hover a {
    color:#09b9de;
}

#main-navigation .main-navigation{
    margin-top: 10px;
}

#main-navigation .main-navigation a{
    padding: 10px 7px;
}

#main-navigation .main-navigation li:hover > a{
    background: #09b9de;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    color: #fff;
}
#main-navigation .main-navigation li:hover > a.dropdown{
    -webkit-border-radius: 15px 15px 0px 0px;
    -moz-border-radius: 15px 15px 0px 0px;
    border-radius: 15px 15px 0px 0px;
}

/* DROPDOWN */

nav li ul {
    display: none;
    background: #09b9de;
    -webkit-border-radius: 0px 15px 15px 15px;
    -moz-border-radius: 0px 15px 15px 15px;
    border-radius: 0px 15px 15px 15px;
}
nav li:hover ul {
    display: block;
    margin-left: 0;
    position: absolute;
    top: 100%;
    z-index: 9999;
    overflow: hidden;
}
nav li:hover li {
    float: none;
    white-space: nowrap;
    width: 100%;
    background:none;
}

nav li:hover li a {
    background: none;
    color: #fff;
    display: block;
    margin:0;
    height: auto;
    text-align: left;
    font-size:1em;
    line-height:50px;
    padding:0 40px 0 20px !important;
    border:0;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
}
nav li:hover li a:hover {
    background: #87c338 !important;
    -webkit-border-radius: 0px !important;
    -moz-border-radius: 0px !important;
    border-radius: 0px !important;
}

/*======================
05. CONTENT STYLES
========================*/
section, .section{
    margin: 20px 0;
}

section p, .section p{
    font-weight: 300;
}

#main-content{
    color: #fff;
}

.slideshow {
    position:relative;
    margin-left:10px;
    width:940px;
    height:320px;
}

.slideshow img {
    left:0;
    position:absolute;
    top:0;
    z-index:9;
}

#content-block-1{
    background-color: #87c338;
    padding: 30px 40px;
}

#sub #content-block-1{
    background-color: #fff;
    color: #333233;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#sub #content-block-1 h1, #sub #content-block-1 h2, #sub #content-block-1 h3, #sub #content-block-1 h4, #sub #content-block-1 h5, #sub #content-block-1 h6{
    color: #724f63;
}

#content-block-2{
    background-color: #09b9de;
    padding: 30px 40px;
}

#content-block-2 .location{
    border-top: 2px solid #724f63;
    padding-top: 15px;
    margin-top: 15px;
    color: #fff;
}

#content-block-2 .location:first-child{
    border: none;
    padding-top: 0;
    margin-top: 0;
}

#content-block-2 .location h2{
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    font-size: 1.8em;
    padding-bottom: 0;
    font-weight: 400;
}

#content-block-2 .location span{
    font-weight: 300;
}

#content-block-3{
    background-color: #724f63;
    padding: 30px 40px;
    color: #fff;
}
#content-block-3:after{
    content: '';
    display: block;
    clear: both;
}

#content-block-3 img.alignleft + p, #content-block-3 img.alignright + p{
    overflow: hidden;
}

#content-block-3 .button:hover{
    background-color: #333233;
}

#content-block-4{
    background-color: #f46417;
    padding: 30px 40px;
    color: #fff;
}

.quick-link-set{
    padding: 25px;
    background: #09b9de;
    text-align: center;
}
#sub #content-block-1 .quick-link-set h3{
    margin-top: 0;
    margin-bottom: 10px;
    color: #fff;
    font-size: 2em;
    display: block;
    padding: 0;
}
.quick-link-set a{
    color: #fff;
    text-decoration: none;
}

/* FORM STYLES */

#form .clear {clear:both;}
#form .center {text-align:center;}
#form h3 {margin:0 1%;}
#form small {font-style:italic;}
#form hr {width:98%;margin:10px 1% 15px 1%;}

/*GRID */
#form .column {
    float:left;
    margin:0 1%;
}

#form .full {width:98%;margin:0 1%;}
#form .half {width:48%;}
#form .twothird {width:65%;}
#form .onethird {width:31%;}

#form input:not([type=submit]):not([type=checkbox]):not([type=radio]) {
    width:96%;
    padding:10px 2%;
}

#form input[type=radio] {
    margin-bottom:5px;
}

#form textarea {
    width:96%;
    resize:none;
    padding:10px 2%;
    font:95%/1.4 'Tahoma',sans-serif;
}

#form select {
    width:101%;
    padding:10px 2%;
}

.index i.icon-star{
	font-size: 20px!important;
}

.reviews{
	font-family: 'Nunito', sans-serif!important;
}

/*======================
06. FOOTER STYLES
========================*/
footer{
    color: #333233;
    font-family: 'Nunito', sans-serif;
    font-size: .8em;
}
footer .section{
    margin-left: 10px;
    margin-right: 10px;
    background-color: #09b9de;
    padding: 20px 30px;
}

footer .section p{
    font-weight: 400;
}

footer .container:after, footer .section:after{
    content: '';
    display: block;
    clear: both;
}

footer a {color:#333233;}
footer a:hover {color:#fff;}

footer li{
    display: inline-block;
    margin: 0 10px 0 0;
}
footer .main-navigation li{
    display: block;
}
footer #social-footer a{
    font-size: 12px;
}

footer h3{
    font-size: 1.4em;
    text-transform: uppercase;
    padding: 0 0 10px 0;
    font-weight: bold;
}

footer a[href^="tel:"] {
    color: #333233;
    text-decoration: none;
}

/*======================
MEDIA QUERIES
========================*/

@media screen and (max-width:1020px){
    .desktop{
        display: none !important;
    }
    .mobile{
        display: block !important;
    }
    .mobile-button{
        display: block;
        position: absolute;
        margin-top: 10px;
        z-index: 9999;
        width:40px;
        height:40px;
        cursor: pointer;
        background:#fff url('../img/hamburger-menu.png') no-repeat center;
        border-radius:10px;
    }
    .flex{
        display: block;
    }
    .content .column{
        float: none;
        margin: auto;
    }
    .grid1,.grid2,.grid3,.grid4,.grid5,.grid6,.grid7,.grid8,.grid9,.grid10,.grid11,.grid12 {
        width:100%;
        margin-right:0;
    }

    section, .section{
        margin: 20px;
    }
    #content-block-1{
        margin-bottom: 20px;
    }
    #content-block-3{
        margin-bottom: 20px;
    }
    #form .column {
        float:none;
        margin:0;
    }
    #form .full, #form .half, #form .twothird, #form .onethird {
        width:98%;margin:0;
    }
    #menu-logo{
        margin: 0 20px 30px 20px;
    }
    #menu-logo .right, #menu-logo .left{
        text-align: center;
    }
    #logo{
        left: 0;
        right: 0;
        width: 60%;
        margin: auto;
        float: none;
        overflow: hidden;
    }
    nav #menu-toggle{
        text-align: center;
    }
    #social{
        display: block;
    }
    #locations{
        display: block;
        position: relative;
        top: 15px;
        margin: 0;
    }
    #locations li{
        margin: 0 5px;
    }
    #quick-links{
        margin: 0;
    }
    #quick-links a{
        line-height: 3em;
    }
    #quick-links li a::after {
        display: none;
    }
    footer{
        text-align: center;
        margin: 20px;
    }
    footer .section{
        margin: 0;
        padding: 30px;
    }
}

@media screen and (max-width:640px) {
    .alignleft, .alignright {
        float:none;
        display:block;
        margin:0 auto 20px auto;
    }
	h1 {font-size:2.4em;}
	h2 {font-size:1.5em;}
	h3 {font-size:1.3em;}
	h4 {font-size:1.5em;}
	h5 {font-size:1.0em;}
	h6 {font-size:0.8em;}
    #header{
        display: none;
    }
    #logo{
        width: 85%;
    }
    #logo img{
        width: 85%;
    }
}