﻿/*
Theme Name: SF Custom
Theme URI: http://www.shanghaifreeman.com
Author: Rae Nester
Author URI: http://www.raediantdesign.com
Description: A custom theme
Version: 1.0
=======
License: n/a
License URI: n/a

This theme is a custom theme exclusively for the use of Shanghai Freemen

*/

/* BS Restyle - to be fixed */

a { color: #01acad; }
a:hover, a:focus { color: #047472; }
.btn-primary { background-color: #01acad; border-color: #009394; }
.btn-primary:hover { background-color: #047472; border-color: #005B59; }
.btn-info { background-color: #ffb652; border-color: #E69D39; }
.btn-info:hover { background-color: #E69D39; border-color: #CC831F; }

@media (min-width: 768px) {
    .lead {
        font-size: 21px;
        font-weight: 400;
        line-height: 1.6;
    }
	
	.modal-dialog {
		margin: 60px auto;
	}
}

.btn {
    font-family: 'Montserrat',"Helvetica Neue",Helvetica,Arial,sans-serif;
    padding: 10px 20px;
    text-transform: uppercase;
}

td .btn { padding: 6px 12px; }

.table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td {
    vertical-align: middle;
}

.btn-lg, .btn-group-lg>.btn {
    padding: 12px 24px;
}

.navbar-default {
    background-color: transparent;
    border-color: transparent;
}

.logo {
    display: block;
    margin: 10px 0;
}

.navbar-default .navbar-nav>li>a {
    color: #3e3e40 ;
    font-family: 'Montserrat',"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-weight: 400;
    font-size: 13px;
	padding-left: 10px;
	padding-right: 10px;
	
}

.navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>li>a:active {
    color: #000000;
}

.navbar-default .navbar-collapse, .navbar-default .navbar-form {
    background-color: #eeeeee;
}

.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:hover, .navbar-default .navbar-nav>.active>a:focus {
    background-color: transparent;
    color: #000000;
}

@media (min-width: 768px) {
    .navbar-default .navbar-collapse, .navbar-default .navbar-form {
        background-color: transparent;
    }
}

/* Shrink Header */

.navbar {
    height: 70px
}

nav .logo img {
    height: 50px;
    width: auto;
}

nav.shrink .logo img {
    height: 30px;
    width: auto;
}

nav.shrink.navbar-default {
    background: #ffffff;
    border-color: #eeeeee;
}

nav.shrink.navbar {
    height: 50px
}

nav .navbar-nav {
    margin-top: 20px;
}

nav.shrink .navbar-nav {
    margin-top: 0;
}

nav, .logo img, .navbar-nav {
    transition: all 0.4s ease;
}

/* Responsive Nav */

@media (max-width: 767px) {
	.logo {
		margin: 10px;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
    .navbar-nav > li > a {
        font-size: 13px;
        padding-left: 10px;
        padding-right: 10px;
    }

    nav .logo img {
        height: 30px;
        width: auto;
    }
}

@media (max-width: 991px) {
    nav .logo img {
        height: 30px;
        width: auto;
    }
}

/* Page Layout */

.intro-header {
    padding-top: 100px; /* If you're making other pages, make sure there is 50px of padding to make sure the navbar doesn't overlap content! */
    padding-bottom: 60px;
    background: url(../images/header.jpg) no-repeat top center;
    background-size: cover;
}

.intro-message h1 {
    max-width: 940px;
    margin-bottom: 20px;
	padding-top: 35px;
}

.intro-message h2, .intro-message .lead, .intro-message h1 {
    color: #ffffff;
    text-shadow: 1px 1px 1px rgba( 0, 0, 0, .7);
}

.intro-message .lead {
    font-weight: 400;
}

.btn-info {
    color: #4A4A4A;
}

.who-what-how {
    padding: 30px 0;
}

.wwh {
    padding: 0 10px;
    text-align: center;
    margin-bottom: 20px;
}

.wwh p {
    text-align: justify;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666666;
    line-height: 1.6;
}

.apart {
    padding-top: 40px;
    padding-bottom: 50px;
    background: url(../images/running_sm2.jpg) no-repeat center center;
    background-size: cover;
}

.apart p {
    font-size: 16px;
}

.newsletter {
    background: #83c441;
    padding: 15px 0 10px;
}

.newsletter h3 {
    margin-top: 10px;
}

.markets {
    padding: 10px 0 0;
    /*background: url(../images/markets-bg.jpg) no-repeat top center;
    background-size: cover;*/
}

.market-intro {
    padding: 20px 0;
}

p.served {
    font-size: 16px;
    font-weight: 400;
}

.market-served {
    margin: 20px 0 50px;
}

.market-icon {
    width: 60px;
    float: left;
}

.market-content {
    margin-left: 80px;
}

.market-content p {
    font-size: 13px;
    color: #666666;
    line-height: 1.6
}

.featured {
   	color: #3e3e40;
	background-color: #ddd;
    background-image: url(../images/featured.jpg); 
	background-size: cover; 
	background-position: center, center;
}

.featured-product { 
	text-align: center; 
	padding: 25px 0; 
}

.featured-product p { 
	font-size: 14px; 
}


.featured.in-page {
	background-image: none;
}
/*
.featured .col-sm-4 {
    padding-left: 0;
    padding-right: 0;
}


.feature {
    padding: 10px 20px 30px;
    background: url(../images/tea.jpg) no-repeat top center;
    background-size: cover;
    /*border-right: 1px solid rgba( 52, 19, 0, .25);
}
*/

@media (min-width: 1200px) {
    .feature {
        padding: 30px 20px 40px;
    }
}

.feature p {
    text-shadow: 1px 1px 1px rgba( 255, 255, 255, .6);
    font-size: 12px;
}

.tea {
    background: url(../images/tea.jpg) no-repeat top center;
    /*border-left: 1px solid rgba( 52, 19, 0, .25 );*/
}

.enzymes {
    background: url(../images/enzymes.jpg) no-repeat top center;
}

.stevia {
    background: url(../images/stevia.jpg) no-repeat top center;
}

@media (min-width: 768px) and (max-width: 991px) {
    .feature p {
        height: 60px;
    }
    .feature {
        padding: 10px 20px 20px;
    }
    .featured .container {
        padding-left: 0;
        padding-right: 0;
    }
}

footer {
    padding: 20px 0 50px;
    background: url(../images/footer-bg.jpg) no-repeat top center;
    background-size: cover;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.7;
}

footer h5, footer .h5 {
    text-transform: uppercase;
    color: #CD8C52;
}

footer a {
    color: #ffffff;
}

footer a:hover, footer a:active {
    color: #f2c291;
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer .company {
    margin-top: 20px;
}

/* Page Styles */

.page-bg {
    width: 100%;
    height: auto;
    padding-top: 200px; /* If you're making other pages, make sure there is 50px of padding to make sure the navbar doesn't overlap content! */
    background: url(../images/wheat-bg.jpg) no-repeat center center #eaa331;
    background-size: cover;
    background-attachment: fixed;
}

.page-wrap {
    background: #ffffff;
    background: rgba(255, 255, 255, .9);
    width: -moz-min-content;    /* Firefox */
    width: -webkit-min-content; /* Chrome */
    margin: 0 auto;
}

@media (min-width: 768px) {
	.page-wrap {
    	padding: 20px;
	}
	
	.page-content h1 {
		font-size: 48px;
		margin: 10px 0 20px;
	}
	
	.page-content h2 {
		margin-top: 0;
	}
	
	.page-content p {
		font-size: 16px;
		line-height: 1.6;
	}
	
	.page-content p.lead, .page-content .lead {
		font-size: 21px;
		font-weight: 300;
	}
}

@media (max-width: 767px) {
	
	.page-content h1 {
		word-wrap: break-word;
	}
	
	.page-content .btn-md {
		margin-bottom: 10px;
	}
}

.page-content ul {
    padding: 0 0 1em 1em;
}

.page-content li {
    margin-bottom: .4em;
}
.page-content hr {
    margin-top: 31px;
    margin-bottom: 31px;
    border-top: 1px solid #999;
}

.page-content ul ul {
	padding: .25em 0 0 1.25em;
}

.feat-btn {
    margin: -15px 0 30px;
}

p.quote {
    font-style: italic;
    margin-top: 30px;
}

.full-bg {
    padding: 50px 0;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
}

.bg-image {
    padding-top: 40px;
    padding-bottom: 50px;
    background: url(../images/locations.jpg) no-repeat center center;
    background-size: cover;
}

.bg-image .img-responsive {
    margin: 0 auto;
}

.location p {
    font-size: 14px;
}

.timeline {
    background: url(../images/timeline.png) repeat-y top center;
}

.timeline p {
    font-size: 14px;
}

.time-item .date {
    border-top: 1px #787B82 solid;
    height: 10px;
}

.time-content {
    width: 60%;
    margin: 0 auto;
}

.time-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #787B82;
    margin-top: -30px;
}

.time-icon img {
    width: 48px;
    height: 48px;
    margin: 6px;
}

.time-float {
    float: right;
    margin: -8px -8px 0 0;
    background: #ffffff;
}

.time-item:nth-child(even) .time-icon {
    float: right;
}

.time-item:nth-child(even) .time-float {
    float: left;
    margin: -8px 0 0 -8px;
}

.time-item:nth-child(7n+1) .h1,  .time-item:nth-child(7n+1) .time-float { color: #ffb652; }
.time-item:nth-child(7n+1) .time-icon { background-color: #ffb652; }
.time-item:nth-child(7n+1) .time-icon { border-color: #ffb652; }

.time-item:nth-child(7n+2) .h1,  .time-item:nth-child(7n+2) .time-float { color: #83c441 ; }
.time-item:nth-child(7n+2) .time-icon { background-color: #83c441 ; }
.time-item:nth-child(7n+2) .time-icon { border-color: #83c441 ; }

.time-item:nth-child(7n+3) .h1,  .time-item:nth-child(7n+3) .time-float { color: #01acad ; }
.time-item:nth-child(7n+3) .time-icon { background-color: #01acad ; }
.time-item:nth-child(7n+3) .time-icon { border-color: #01acad ; }

.time-item:nth-child(7n+4) .h1,  .time-item:nth-child(7n+4) .time-float { color: #127dc2; }
.time-item:nth-child(7n+4) .time-icon { background-color: #127dc2; }
.time-item:nth-child(7n+4) .time-icon { border-color: #127dc2; }

.time-item:nth-child(7n+5) .h1,  .time-item:nth-child(7n+5) .time-float { color: #92216a; }
.time-item:nth-child(7n+5) .time-icon { background-color: #92216a; }
.time-item:nth-child(7n+5) .time-icon { border-color: #92216a; }

.time-item:nth-child(7n+6) .h1,  .time-item:nth-child(7n+6) .time-float { color: #c73133; }
.time-item:nth-child(7n+6) .time-icon { background-color: #c73133; }
.time-item:nth-child(7n+6) .time-icon { border-color: #c73133; }

.time-item:nth-child(7n+7) .h1,  .time-item:nth-child(7n+7) .time-float { color: #F4834B; }
.time-item:nth-child(7n+7) .time-icon { background-color: #F4834B; }
.time-item:nth-child(7n+7) .time-icon { border-color: #F4834B; }


@media (min-width: 768px) {

    .time-item:nth-child(odd) {
        margin-top: -75px;
    }

    .time-item:nth-child(even) {
        margin-top: 0px;
    }

    .time-item:nth-of-type(1) {
        margin-top: 0;
    }

    .time-item:nth-of-type(2) {
        margin-top: 75px;
    }

    .time-item p {
        min-height: 65px;
    }
}
@media (max-width: 767px) {

    .page-bg {
        padding-top: 60px;
    }
    .page-wrap {
        width: 100%;
    }
    
    .timeline {
        background: url(../images/timeline.png) repeat-y top left;
    }

    .time-float {
        float: left;
        margin: -8px 0 0 -8px;
    }

    .time-icon {
        width: 32px;
        height: 32px;
        margin-top: -16px;
        float: right;
    }
    .time-icon img {
        width: 30px;
        height: 30px;
        margin: 1px;
    }
	
	.btn-lg, .btn-group-lg>.btn {
    	padding: 12px 18px;
		font-size: 17px;
	}
	
	.mobile-pad {
		margin-top: 20px;
	}
}

.our-team h2 {
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 30px;
}

.bio {
    position: relative;
    max-width: 500px;
    margin: 15px 0;
}

.bio img {
    -webkit-transition: all 300ms ease-out;
    -moz-transition: all 300ms ease-out;
    -o-transition: all 300ms ease-out;
    -ms-transition: all 300ms ease-out;
    transition: all 300ms ease-out;
}

.bio-overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(230,134,73,0.9);
    color: #fff;
    padding: 15px;
    overflow: hidden;
    -webkit-transition: all 300ms ease-out;
    -moz-transition: all 300ms ease-out;
    -o-transition: all 300ms ease-out;
    -ms-transition: all 300ms ease-out;
    transition: all 300ms ease-out;
}

.bio .fade-caption {
    opacity: 0;
}

.bio:hover .fade-caption, .bio:focus .fade-caption {
    opacity: 1;
}

.bio a { color: #d4d4d4; }
.bio a:hover { color: #fff; }

.bo-joint { background-color: rgba(230,134,73,0.9); }
.bo-vitamin { background-color: rgba(199,49,51,0.9); }
.bo-herbal { background-color: rgba(146,33,106,0.9); }
.bo-specialty { background-color: rgba(18,125,194,0.9); }
.bo-qc { background-color: rgba(1,172,173,0.9); }
.bo-sales { background-color: rgba(131,196,65,0.9); }

@media (max-width: 767px) {
    .bio {
        font-size: 75%;
    }
}

.job-post { background: #fff; padding: 1px 20px 10px; margin-bottom: 15px; }

.lt-gray { background-color: #f2f2f2; }
/*.logos img {
    padding: 10px;
}*/

.bg-products {
    padding-top: 30px;
    padding-bottom: 50px;
    background: url(../images/products.jpg) no-repeat top center;
    background-size: cover;
}

.bg-products a {
    color: #3e3e40 ;
}

.bg-products a:hover, .bg-products a:active {
    color: #555555;
    text-decoration: none;
}

.bg-products a img:hover, .bg-products a img:active {
    opacity: .8;
}



img.attachment-large {
	margin: 10px 0;
	display: block;
  	max-width: 100%;
  	height: auto;
	border: 1px solid #7c7c80;
}

.news-entry {
	padding-bottom: 20px;
	border-bottom: #7c7c80 1px solid;
	margin-bottom: 40px;
}

p.postmetadata { color: #666666; }

img.tradeshow { border: 1px solid #7c7c80; text-align:center; }
img.inset { border: 1px solid #7c7c80; margin-bottom: 20px; }
.gform_confirmation_message { font-size: 150%; font-weight: bold;}

/* YouTube Responsive CSS */
.responsive-youtube {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    padding-top: 25px;
    height: 0;
}
 
.responsive-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%!important;
    height: 100%!important;
}

/* Margins & Padding */
.mrm { margin-right: 10px; }
.prl { padding-right: 20px; }
.mtl { margin-top: 20px; }
.ptl { padding-top: 20px; }
.mbs { margin-bottom: 5px; }
.mbl { margin-bottom: 20px; }
.mtm { margin-top: 10px; }
.mbm { margin-bottom: 10px; }

.row.no-gutters {
    margin-right: 0;
    margin-left: 0;
}
.row.no-gutters > [class^="col-"],
.row.no-gutters > [class*=" col-"] {
    padding-right: 0;
    padding-left: 0;
}


/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto
}

img.nomargin {
    margin: 0 !important;
}

.wp-caption {
    background: #fff;
    border: none;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 18px;
    font-style: italic;
    line-height: 24px;
    color: #999;
    margin: 0;
    padding: 15px 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar. */
}