/* -------------------------------------------

Name: 		Asterisk
Author:		Nazar Miller (millerDigitalDesign)
Portfolio:  https://themeforest.net/user/millerdigitaldesign/portfolio?ref=MillerDigitalDesign


Common:

1. Fonts
2. Common styles
3. Bootstrap paddings fix
4. Titles and text

Sections:

5. Header
6. Portfolio
7. Services
8. About
9. Stats
10. Testimonials
11. Brands
12. latest posts
13. Contact
14. Footer


/* ---------------------------------------

fonts 

--------------------------------------- */

@import url('https://fonts.googleapis.com/css?family=Montserrat:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&subset=cyrillic,cyrillic-ext,latin-ext,vietnamese');
@import url('https://fonts.googleapis.com/css?family=Raleway:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&subset=latin-ext');

/* ---------------------------------------

Common styles

--------------------------------------- */

*:focus {
    outline: inherit;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: #292E32;
}

section.page a, a:hover, a:focus {
    text-decoration: underline dotted;
}

section.post {
    font-size: 14pt;
}

body {
    color: #292E32;
    margin: 0;
    padding: 0;
    background-color: #FAFAFA;
    background-image: url(../img/ui/loader.svg);
    background-repeat: no-repeat;
    background-position: 51% 49%;
    background-attachment: fixed;
    font-family: 'Montserrat', sans-serif;
}

.page-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #FAFAFA;
}

/* ---------------------------------------

Padding fix 

--------------------------------------- */

.m-5 {
    margin: 0 -5px 0 -5px;
}

.p5 {
    padding: 0 5px 0 5px;
}

/* ---------------------------------------

Titles and text

--------------------------------------- */

.main-title {
    margin: 25vh 0 0 5px;
    height: 55vh;
}

.main-title h1 {
    font-weight: 100;
    font-size: 36px;
}

.main-title p {
    font-weight: 100;
}

.section-title {
    height: 30px;
    margin: 60px 0 70px;
}

.fa-asterisk {
    display: inline-block;
    margin-right: 4px;
    margin-bottom: -4px;
    color: #FE6A44;
}

.section-title h2 {
    font-weight: 100;
    font-size: 18px;
    margin: 0;
}

.s-title-descr p {
    text-align: right;
    font-weight: 100;
    margin: 0;
}

.clean-title {
    margin: 0;
}

.clean-title h2 {
    margin: 0;
    font-weight: 100;
    font-size: 18px;
}

.clean-title p {
    font-weight: 100;
    margin-top: 5px;
    margin-bottom: 25px;
}

.raleway {
    font-weight: 300;
    margin-top: 5px;
    color: #90A4AE;
    font-family: 'Raleway', sans-serif;
}

.raleway b {
    color: #292E32;
}

.raleway li {
    list-style-type: none;
}

.raleway li .fa {
    color: #292E32;
}

/* ---------------------------------------

Header

--------------------------------------- */

header {
    overflow: hidden;
    background-color: #FAFAFA;
    padding: 0;
    margin: 0;
    height: 55vh;
    width: 100%;
}

header .container {
    position: relative;
}

/* ---------------------------------------

Social icons 

--------------------------------------- */

.social-icons {
    position: absolute;
    right: 15px;
    padding-top: 25vh;
}

.social-icons ul li {
    margin: 10px 0;
    text-align: right;
    list-style-type: none;
}

.social-icons ul li a .fa {
    color: #292E32;
    font-size: 15px;
    -webkit-transition: .3s;
    transition: .3s;
}

.social-icons ul li a .fa:hover {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

/* ---------------------------------------

navigation 

--------------------------------------- */

.navbar {
    background-color: rgba(250, 250, 250, .95);
    position: fixed;
    z-index: 9999999;
    width: 100%;
    z-index: 2;
    padding: 20px 0 10px;
    margin: 0;
}

.navbar-brand {
    position: relative;
    padding-top: 10px;
    font-weight: bold;
}

.navbar ul li a {
    padding: 7px;
    border-bottom: dashed 2px transparent;
    margin-left: 10px;
    -webkit-transition: .3s;
    transition: .3s;
}

.navbar ul li a:hover,
.navbar ul li .active {
    background-color: transparent;
    border-bottom: dashed 2px #BBC4C8;
}

.hidden-social {
    margin-top: 15px;
    display: none;
}

.navbar .hidden-social ul {
    padding: 0;
}

.hidden-social ul li {
    display: inline;
}

.navbar .nav .open > a,
.navbar .nav .open > a:focus,
.navbar .nav .open > a:hover {
    background-color: transparent;
    border-color: transparent;
}

.navbar .navbar-nav > li > .dropdown-menu {
    background: #fff;
    border: none;
    padding: 10px 15px 15px 5px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

/*----------  burger  -----------*/

.burger {
    width: 25px;
    height: 25px;
    cursor: pointer;
    position: relative;
    right: 10px;
}

.burger:before,
.burger span,
.burger:after {
    width: 100%;
    height: 2px;
    display: block;
    background-color: #292E32;
    border-radius: 2px;
    position: absolute;
    opacity: 1;
}

.burger:before,
.burger:after {
    -webkit-transition: top .35s cubic-bezier(.23, 1, .32, 1), opacity .35s cubic-bezier(.23, 1, .32, 1), background-color 1.15s cubic-bezier(.86, 0, .07, 1), -webkit-transform .35s cubic-bezier(.23, 1, .32, 1);
    transition: top .35s cubic-bezier(.23, 1, .32, 1), opacity .35s cubic-bezier(.23, 1, .32, 1), background-color 1.15s cubic-bezier(.86, 0, .07, 1), -webkit-transform .35s cubic-bezier(.23, 1, .32, 1);
    transition: top .35s cubic-bezier(.23, 1, .32, 1), transform .35s cubic-bezier(.23, 1, .32, 1), opacity .35s cubic-bezier(.23, 1, .32, 1), background-color 1.15s cubic-bezier(.86, 0, .07, 1);
    transition: top .35s cubic-bezier(.23, 1, .32, 1), transform .35s cubic-bezier(.23, 1, .32, 1), opacity .35s cubic-bezier(.23, 1, .32, 1), background-color 1.15s cubic-bezier(.86, 0, .07, 1), -webkit-transform .35s cubic-bezier(.23, 1, .32, 1);
    -webkit-transition: top .35s cubic-bezier(.23, 1, .32, 1), -webkit-transform .35s cubic-bezier(.23, 1, .32, 1), opacity .35s cubic-bezier(.23, 1, .32, 1), background-color 1.15s cubic-bezier(.86, 0, .07, 1);
    content: "";
}

.burger:before {
    top: 2px;
}

.burger span {
    top: 10px;
}

.burger:after {
    top: 18px;
}

.burger.cross span {
    opacity: 0;
}

.burger.cross:before,
.burger.cross:after {
    top: 40%;
}

.burger.cross:before {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=5);
}

.burger.cross:after {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=-5);
}

.burger:focus {
    outline: none;
}

/* -----------------------------------------

filter

----------------------------------------- */

.filter .button {
    padding: 7px;
    border: none;
    background-color: transparent;
    border-bottom: dashed 2px transparent;
    margin-right: 10px;
    -webkit-transition: .3s;
    transition: .3s;
}

.filter .button:hover,
.filter .active {
    border-bottom: dashed 2px #BBC4C8;
}

.filter {
    position: relative;
    padding: 20px 0;
}

/* ---------------------------------------

Portfolio grid 

---------------------------------------- */

.grid {
    padding-bottom: 1px;
}

.item-title {
    font-size: 14px;
    font-weight: bold;
}

.portfolio {
    margin-bottom: 10px;
}

.element-item-25 {
    float: left;
    width: 25%;
    overflow: hidden;
}

.element-item-50 {
    float: left;
    width: 50%;
    overflow: hidden;
}

.element-item-33 {
    float: left;
    width: 33.333333333%;
    overflow: hidden;
}

.element-item-50 img,
.element-item-25 img,
.element-item-33 img {
    width: 100%;
}

/* --------------  item hover  --------------*/

.grid-item .hover-descr {
    position: absolute;
    padding: 15px 15px 0 0;
    top: 100%;
    width: 100%;
    height: 100%;
    -webkit-transition: .4s;
    transition: .4s;
    -webkit-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
}

.grid-item img {
    -webkit-transition: .4s;
    transition: .4s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

.grid-item:hover img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-transition: .4s;
    transition: .4s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

.grid-item:hover .hover-descr {
    top: 0;
    -webkit-transition: .4s;
    transition: .4s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

.grid-item .hover-descr .full-screen {
    text-align: center;
    height: 30px;
    width: 30px;
    opacity: 0;
    float: right;
    background-color: #fff;
    padding-top: 7px;
    border-radius: 50%;
    -webkit-transition: .4s;
    transition: .4s;
    -webkit-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
}

.grid-item:hover .hover-descr .full-screen {
    opacity: 1;
    -webkit-transition: .6s;
    transition: .6s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
    -webkit-transition-delay: .4s;
    transition-delay: .4s;
}

.grid-item .hover-descr .descr {
    background-color: #fff;
    width: 100%;
    padding: 10px 15px;
    position: absolute;
    bottom: 0;
}

.grid-item .hover-descr .descr p {
    position: relative;
    bottom: -30px;
    -webkit-transition: .3s;
    transition: .3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
    -webkit-transition-delay: .3s;
    transition-delay: .3s;
}

.grid-item:hover .hover-descr .descr p {
    bottom: 0;
    -webkit-transition: .3s;
    transition: .3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
    -webkit-transition-delay: .3s;
    transition-delay: .3s;
}

/* -----------------------------------------

Services

----------------------------------------- */

.service-text {
    margin-top: 10px;
    width: 100%;
    border-radius: 2px;
    position: relative;
}

.service-text span {
    font-weight: bold;
}

.service-text p {
    margin-top: 5px;
}

.service-box {
    padding: 15px 15px 10px;
    background-color: rgba(255, 255, 255, .8);
    margin-bottom: 10px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    height: 100%;
}

.service-picture img {
    width: 40px;
    margin: 0 auto;
    height: 40px;
}

/* -----------------------------------------

About

----------------------------------------- */

.about-box-text {
    margin-bottom: 10px;
}

.about-box-video {

    margin-bottom: 10px;
}

.about-text {
    padding: 15px;
    background-color: rgba(255, 255, 255, .8);
    height: 100%;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.about-video {
    width: 100%;
    height: 100%;
    background-image: url(../img/ui/video-bg.png);
    background-position: center;
    background-size: cover;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.about-video .fa {
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    text-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    font-size: 25px;
    height: 60px;
    width: 60px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fff;
    margin: -30px 0 0 -30px;
    border: solid 4px #fff;
    padding: 15px;
    padding-left: 18px;
    border-radius: 50%;
    -webkit-transition: .4s;
    transition: .4s;
}

.about-video .fa:hover {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

/* -----------------------------------------

Stats

----------------------------------------- */

.stats-item {
    background-color: rgba(255, 255, 255, .8);
    padding: 15px 15px 10px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    margin-bottom: 10px;
}

.stats-item img {
    margin-top: -10px;
    margin-right: 5px;
    width: 40px;
    height: 40px;

}

.stats-item .counter {
    display: inline-block;
    font-weight: 300;
    font-size: 25px;
    color: #a1a1a1;
}

.stats-item p {
    margin-top: 5px;
}

/* -----------------------------------------

Testimonials

----------------------------------------- */

.message-box {
    width: 100%;
}

.message-box .picture {
    width: 100%;
    display: block;

}

.picture img {
    width: 60px;
    margin: 0 auto;
    height: 60px;
    border-radius: 50%;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.picture span {
    font-size: 10px;
    font-weight: 100;
    display: block;
    text-align: center;
    margin-top: 5px;
}

.message {
    margin: 10px 1px 1px;
    background-color: rgba(255, 255, 255, .8);
    width: 100%;
    padding: 15px 15px 10px;
    border-radius: 2px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    position: relative;
}

.message:before {
    content: "";
    position: absolute;
    display: block;
    left: 50%;
    border-right: 8px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
    top: 0;
    margin-top: -10px;
}

.message span {
    color: #555;
    font-weight: bold;
}

.message p {
    color: #a1a1a1;
    padding-top: 5px;
    font-weight: 300;
}

.message-box.right-img .picture {
    float: right;
    padding: 0;
    padding-left: 10px;
}

.message-box.right-img .picture img {
    float: right;
}

.message-box.right-img .message:before {
    left: 100%;
    margin-right: 6px;
    margin-left: 0;
    border-right: 6px solid transparent;
    border-left: 6px solid #fff;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.owl-carousel .owl-item img {
    display: block;
    width: auto;
}

.owl-nav {
    margin: 60px 0 60px;
    height: 30px;
    position: relative;
    left: 0;
    z-index: 999;
    width: 40px;
}

.owl-dots {
    margin: 60px 0 70px;
    height: 30px;
    margin: 0;
    position: absolute;
    right: 0;
    bottom: 0;
    padding-top: 7px;
    text-align: right;
    z-index: 99999999;
}

/* -----------------------------------------

Brands 

----------------------------------------- */

.brands-slider .item img {
    width: 40%;
    margin: 0 auto;
    -webkit-transition: .4s;
    transition: .4s;
}

.brands-slider .item img:hover {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

/* -----------------------------------------

Latest post

------------------------------------------ */

.post-img img {
    width: 100%;
    -webkit-transition: .4s;
    transition: .4s;
}

.post-descr {
    height: 150px;
    position: relative;
    padding: 15px;
    background-color: #fff;
}

.post-box {
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background-color: #fff;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    margin-bottom: 10px;
}


.post-box:hover .post-img img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-transition: .4s;
    transition: .4s;
}

.post-det {
    position: absolute;
    top: 15px;
    right: 15px;
    text-align: center;
    height: 30px;
    width: 30px;
    opacity: 0;
    float: right;
    z-index: 1;
    background-color: #fff;
    padding-top: 5.3px;
    border-radius: 50%;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    -webkit-transition: .4s;
    transition: .4s;
    -webkit-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
}

.post-box:hover .post-det {
    opacity: 1;
    -webkit-transition: .4s;
    transition: .4s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

.post-box .fa {
    font-size: 13px;
    -webkit-transition: .3s;
    transition: .3s;
}

.post-box .fa:hover {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-transition: .3s;
    transition: .3s;
}

.pagination > li > a,
.pagination > li > span {
    border-radius: 2px;
    border: none;
    color: #292E32;
    background-color: transparent;
    -webkit-transition: .3s;
    -webkit-transition: .4s;
    transition: .4s;
}

.pagination > li > .active,
.pagination > li > a:hover,
.pagination > li > span:hover {
    border: none;
    color: #292E32;
    background-color: #fff;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.post-content {
    margin-bottom: 60px;
}

.post-content img {
    border-radius: 2px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    width: 100%;
    margin-bottom: 30px;
}

/* -----------------------------------------

Contact

------------------------------------------ */

input,
textarea {
    background-color: rgba(255, 255, 255, .8);
    padding: 15px;
    width: 100%;
    border: none;
    margin-bottom: 10px;
    border-radius: 2px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

input {
    height: 50px;
}

textarea {
    height: 110px;
}

.submit {
    background-image: -webkit-gradient(linear, left bottom, left top, from(#FB273A), to(#FF7248));
    background-image: linear-gradient(0deg, #FB273A 0%, #FF7248 100%);
    color: #fff;
    font-size: 18px;
    width: 100%;
    text-align: center;
    border: none;
    border-radius: 2px;
    height: 110px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    -webkit-transition: .4s;
    transition: .4s;
}

.submit:hover {
    background-image: -webkit-gradient(linear, left bottom, left top, from(#FB273A), color-stop(70%, #FF7248));
    background-image: linear-gradient(0deg, #FB273A 0%, #FF7248 70%);
    -webkit-transition: .4s;
    transition: .4s;
}

.submit .fa {
    -webkit-transition: .4s;
    transition: .4s;
}

.submit:hover .fa {
    -webkit-transform: scale(1.3);
    transform: scale(1.3);
    -webkit-transition: .4s;
    transition: .4s;
}

.subscribe-sbmt {
    height: 50px;
}

.map-bg {
    position: absolute;
    margin-top: 30px;
    width: 100%;
    height: 400px;
    background-image: url(../img/ui/bg-map.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: .03;
}

/* --------------  Popup  --------------*/

.popup {
    position: fixed;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    bottom: 0;
    left: 0;
    z-index: 9999999999999999;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 250, 250, .8);
}

.n-active-popup {
    display: none;
}

.active-popup {
    display: block;
    -webkit-animation: fadeIn .5s;
    animation: fadeIn .5s;
}

.popup-window {
    text-align: center;
    margin: auto;
    margin-top: 30vh;
    padding: 30px 0 35px;
    width: 400px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    background-color: #fff;
}

.popup-window img {
    margin: auto;
    width: 50px;
    margin-bottom: 15px;
}

.popup-window .item-title {
    margin: 0 auto;
}

.popup-window .text {
    margin: 10px auto 0;
}

.popup-window button {
    margin-top: 15px;
    background-image: -webkit-gradient(linear, left bottom, left top, from(#FB273A), to(#FF7248));
    background-image: linear-gradient(0deg, #FB273A 0%, #FF7248 100%);
    color: #fff;
    padding: 10px 30px;
    text-align: center;
    border: none;
    border-radius: 2px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    -webkit-transition: .4s;
    transition: .4s;
}

.popup-window button:hover {
    background-image: -webkit-gradient(linear, left bottom, left top, from(#FB273A), color-stop(70%, #FF7248));
    background-image: linear-gradient(0deg, #FB273A 0%, #FF7248 70%);
    -webkit-transition: .4s;
    transition: .4s;
}

/* -----------------------------------------

Footer 

------------------------------------------ */

.footer {
    padding: 60px 0 70px;
}

.footer-social-icon {
    padding: 0;
    margin: 0;
    text-align: right;
}

.footer-social-icon li {
    list-style-type: none;
    padding-left: 10px;
    display: inline;
    margin: 0;
}

.footer-social-icon li a .fa {
    font-size: 15px;
    -webkit-transition: .3s;
    transition: .3s;
}

.footer-social-icon li a .fa:hover {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

.footer-brand {
    font-size: 18px;
    font-weight: bold;
}

.copyright {
    margin-top: 5px;
    font-weight: 100;
}

footer a:hover {
    text-decoration: underline;
}

.footer-mail {
    margin-top: 5px;
    font-weight: 100;
    float: right;
}

/* -----------------------------------------

Background asterisk 

------------------------------------------ */

.bg-asterisk-1 {
    cursor: default;
    height: 480px;
    width: 480px;
    text-align: center;
    position: absolute;
    opacity: .02;
    left: -17vh;
    margin: 0;
    line-height: 100vh;
    font-size: 95vh;
    font-weight: bold;
    -webkit-animation: rotate 3s infinite;
    animation: rotate 3s infinite;
}

.bg-asterisk-2 {
    cursor: default;
    height: 480px;
    width: 480px;
    text-align: center;
    position: absolute;
    opacity: .02;
    right: -17vh;
    margin: 0;
    line-height: 95vh;
    font-size: 95vh;
    font-weight: bold;
    -webkit-animation: rotate 3s infinite;
    animation: rotate 3s infinite;
    -webkit-animation-delay: 1s;
    animation-delay: 1s;
}
