/* ======= Base ======= */
body {
    font-family: 'Lato', arial, sans-serif;   
    color: $text-color;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6  {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: $color;
}

a {
    color: $color;
    @include transition (all 0.4s ease-in-out);
    &:hover {
        text-decoration: underline;
        color: darken($color, 10%);
    }
}

.btn, a.btn {
    @include transition (all 0.4s ease-in-out);
    font-family: 'Montserrat', arial, sans-serif;
    padding: 8px 16px;
    font-weight:bold;
    .svg-inline--fa {
        margin-right: 5px;
    }

    &:focus {
        color: #fff;
        @include box-shadow(none);
    }
}

a.btn-cta-primary, .btn-cta-primary { 
    background: darken($color, 30%);
    border: 1px solid darken($color, 30%);
    color: #fff;
    font-weight:600;
    text-transform: uppercase;
    &:hover {
        background: darken($color, 35%);
        border: 1px solid darken($color, 35%);
        color: #fff;
    }
}

a.btn-cta-secondary,  .btn-cta-secondary { 
    background: $color-2;
    border: 1px solid $color-2;
    color: #fff;
    font-weight:600;
    text-transform: uppercase;
    &:hover {
        background: darken($color-2, 5%);
        border: 1px solid darken($color-2, 5%);
        color: #fff;
    }
}

.text-highlight {
    color: darken($color, 30%);
}

.offset-header {
    padding-top: 90px;
}

pre code {
    font-size: 16px;
}

        
/* ======= Header ======= */
.header {
    padding: 10px 0;
    background: $color;
    color: #fff;
    position: fixed;
    width: 100%;
    
    &.navbar-fixed-top {
        background: #fff;
        z-index: 9999;
        @include box-shadow (0 0 4px rgba(0,0,0,0.4));
        .logo {
            a {
                color: $color;
            }
        }

    }
    
    .logo {
        margin: 0;
        font-size: 26px;
        padding-top: 10px;
        a {
            color:#fff;
            &:hover {
                text-decoration: none;
            }
        }
    }
    .main-nav {      
        
        .navbar-collapse {
            padding: 0;
        }
        .navbar-toggler {
	        margin-right: 0;
	        margin-top: 0;
	        background: none;
	        float: right;
	        margin-top: 8px;
	        margin-bottom: 8px;
	        padding: 8px 8px;
	        right:10px;
	        top: 10px;
	        background: darken($color, 30%);
	        
	        &:focus {
	            outline: none;
	        }
	        .icon-bar {
		        display: block;
	            background-color: #fff;
	            height: 2px;
	            width: 22px;
	            @include border-radius(1px);
	            & + .icon-bar {
		            margin-top: 4px;
		            
	            }
	        }
	        &:hover {
	            .icon-bar {
	                background-color: #fff;
	            }
	        }
	    }
        .nav {
            .nav-item {
                font-weight: bold;
                margin-right: 30px;
                font-family: 'Montserrat', sans-serif;
                
                .nav-link {
                    color: darken($color, 25%);
                    @include transition (none);
                    font-size: 14px;
                    padding: 15px 10px;
                    &.active {
	                    color: $color;
	                    background: none;
	                }
                    &:hover {  
                        color: darken($color, 30%);    
                        background: none;             
                    }
                    &:focus {
                        outline: none;
                        background: none;
                    }
                    &:active {
                        outline: none;
                        background: none;
                    }
                }    

                &.last {
                    margin-right: 0;
                }
            }
            
        }
        
    }
    
}

/* ======= Promo Section ======= */
.promo {
    background: $color;
    color: #fff;
    padding-top: 150px;
    .title {
        font-size: 98px;
        color: darken($color, 30%);
        margin-top: 0;
        .highlight {
            color: $color-2;
        }
    }
    
    .intro {
        font-size: 28px;
        max-width: 680px;
        margin: 0 auto;
        margin-bottom: 30px;
    }
    
    .btns {
        .btn {
            margin-right: 15px;
            font-size: 18px;
            padding: 8px 30px;
        }
    }
    
    .meta {
        margin-top: 120px;
        margin-bottom: 30px;
        color: darken($color, 20%);
        li {
            margin-right: 15px;
            
        }
        a {
            color: darken($color,20%);
            &:hover {
                color: darken($color, 30%);
            }
        }
    }
    
    .social-media {
        background: darken($color, 15%);
        padding: 10px 0;
        margin: 0 auto;
        li {
            margin-top: 15px;
            &.facebook-like {
                margin-top: 0;
                position: relative;
                top: -5px;
            }
        }
    }

}

/* ======= About Section ======= */
.about {
    padding: 80px 0;
    background: $smoky-white;
    .title {
        color: darken($color, 30%);
        margin-top: 0;
        margin-bottom: 60px;
    }
    .intro {
        max-width: 800px;
        margin: 0 auto;
        margin-bottom: 60px;
    }
    
    .item {
        position: relative;
        margin-bottom: 30px;
        .icon-holder {
            position: absolute;
            left: 30px;
            top: 0;
            .svg-inline--fa {
                font-size: 24px;
                color: darken($color, 30%);
            }
        }
        .content {
            padding-left: 60px;
            .sub-title {
                margin-top: 0;
                color: darken($color, 30%);
                font-size: 18px;
            }
        }
    }

}

/* ======= Features Section ======= */
.features {
    padding: 80px 0;
    background: $color;
    color: #fff;
    .title {
        color: darken($color, 30%);
        margin-top: 0;
        margin-bottom: 30px;
    }
    a {
        color: darken($color, 30%);
        &:hover {
            color: darken($color, 40%);
        }
    }
    .feature-list {
        li {
            margin-bottom: 10px;
            color: darken($color, 30%);
            .svg-inline--fa {
                margin-right: 5px;
                color: #fff;
            }
        }
    }
    
}

/* ======= Docs Section ======= */
.docs {
    padding: 80px 0;
    background: $smoky-white;
    .title {
        color: darken($color, 30%);
        margin-top: 0;
        margin-bottom: 30px;
    }
    .docs-inner {
        max-width: 800px;
        background: #fff;
        padding: 30px;
        @include border-radius(4px);
        margin: 0 auto;
    }
    .block {
        margin-bottom: 60px;
    }
    .code-block {
        margin: 30px inherit;
        pre[class*="language-"] {
            @include border-radius(4px);
        }
    }
}

/* ======= License Section ======= */
.license {
    padding: 80px 0;
    background: $smoky-white;
    
    .title {
        margin-top: 0;
        margin-bottom: 30px;
        color: darken($color, 30%);
    }
    .license-inner {
        max-width: 800px;
        background: #fff;
        padding: 30px;
        @include border-radius(4px);
        margin: 0 auto;
        
    }
    .info {
        max-width: 760px;
        margin: 0 auto;
    }
    .cta-container {
        max-width: 540px;
        margin: 0 auto;
        margin-top: 60px;
        @include border-radius(4px);
        .speech-bubble {
            background: lighten($color, 40%);
            color: darken($color, 30%);
            padding: 30px;
            margin-bottom: 30px;
            position: relative;
            @include border-radius(4px);
            &:after {
                position: absolute;
                left: 50%;
                bottom: -10px;
                margin-left: -10px;
                content: "";
                display: inline-block;
                width: 0; 
            	height: 0; 
            	border-left: 10px solid transparent;
            	border-right: 10px solid transparent;
            	
            	border-top: 10px solid lighten($color, 40%);
            }
        }
        .icon-holder {
            margin-bottom: 15px;
            .svg-inline--fa {
                font-size: 56px;
            }

        }
        
        .intro {
            margin-bottom: 30px;
        }

        
    }

}

/* ======= Contact Section ======= */
.contact {
    padding: 80px 0;
    background: $color;
    color: #fff;
    .contact-inner {
        max-width: 760px;
        margin: 0 auto;
    }
    .title {
        color: darken($color, 30%);
        margin-top: 0;
        margin-bottom: 30px;
    }
    .intro {
        margin-bottom: 60px;
    }
    a {
        color: darken($color, 30%);
        &:hover {
            color: darken($color, 40%);
        }
    }
    .author-message {
        position: relative;
        margin-bottom: 60px;
        .profile {
            position: absolute;
            left: 30px;
            top: 15px;
            width: 100px;
            height: 100px;
            img {
                @include border-radius(50%);
            }
        }
        .speech-bubble {
            margin-left: 155px;
            background: darken($color, 3%);
            color: darken($color, 30%);
            padding: 30px;
            @include border-radius(4px);
            position: relative;
            .sub-title {
                color: darken($color, 30%);
                font-size: 16px;
                margin-top: 0;
                margin-bottom: 30px;
            }
            
            a {
                color: #fff;
            }
            
            &:after {
                position: absolute;
                left: -10px;
                top: 60px;
                content: "";
                display: inline-block;
                width: 0; 
            	height: 0; 
            	border-top: 10px solid transparent;
            	border-bottom: 10px solid transparent;            	
            	border-right: 10px solid darken($color, 3%);
            }
            .source {
                margin-top: 30px;
                a {
                    color: darken($color, 30%);
                }
                .title {
                    color: darken($color, 15%);
                }
            }
            
        }
    }
    
    .info {
        .sub-title {
            color: darken($color, 10%);
            margin-bottom: 30px;
            margin-top: 0;
        }
    }
    
    .social-icons {
        list-style: none;
        padding: 10px 0;
        margin-bottom: 0;
        display: inline-block;
        margin: 0 auto;
        li {
           float: left;
           &.last {
               margin-right: 0;
           }
        }
    
        a {
            display:inline-block;
            background: darken($color, 15%);               
            width: 48px;
            height: 48px;
            text-align: center;
            font-size: 24px;
            
            @include border-radius(50%);
            margin-right: 8px;
            float: left;
            
            &:hover {
                background: darken($color-2, 10%);
            }
            
            .svg-inline--fa {
                color: #fff;
                text-align: center;
                margin-top: 14px;
                font-size: 20px;
                
            }
        }
        
    }
}

/* ======= Footer ======= */

.footer {
    padding: 15px 0;   
    background: darken($color, 40%);
    color: #fff;
    .copyright {
        @include opacity(0.8);
    }
    .fa-heart {
        color: $heart;
    } 
}

